Closed Beniamiiin closed 7 years ago
Hi @Beniamiiin !
Thanks for your report!
As we just have checked getTime()
method is working properly: it returns the correct timestamp in milliseconds. So you can try out this code and get the right Date
object:
let messageDate = Date(timeIntervalSince1970: TimeInterval(message.getTime() / 1000))
This image is representing a result of using this code:
You don't have to be worried about Webim server responses' content because it is used only by internal entities of the library.
Have a nice day!
Function
Message.getTime()
return incorrect timestamp. Also, I'm sure that you have a mistake not only in this function. Please, check all places where you use timestamps.For example, look at this log:
Mind you, values of
revision
andts_m
are incorrect they have to be1510656906
and1510149539
."revision" : "1510656906966707"
- it looks like1510656906.966707
. I think that way because in this response I see that format of timestamp: