sinchandroid-sinch-api

Sinch Incoming Message TimeZone


Documentation for Incoming Message Timestamp states that incoming message is stamped with server time.

Unfortunately there is no TimeZone information tagged with the returned value and its difficult to do any sort of operation using the time. Like for example Sinch API replays back all the messages since last 30 days if the App was uninstalled and installed. Because of this reason the incoming message time stamp is very critical as we need to ignore an already replayed message.

Is there a way we can retrieve the TimeZone information of the server so that we can use time zone offset in all our time arithmetic?


Solution

  • We will update the documetation, its UTC time everywhere from us