Chat events timestamp

Calculating timestamp of chat events correctly