Time published wrong

Hey everybody !

My application publish many messages to particle Cloud and i noticed the data related to local hour time is wrong (“published_at”:“2016-11-06T20:34:05.566Z” is wrong). There is always 5 hours difference between real Montreal time.
I tried to use all the relevant functions available in Time library but nothing worked.

Do you have any idea how to solve this problem?

Thank you very much !


The Z at the end of your timestamp indicates that this is a UTC timestamp.

So the time is not wrong but just not bound to your device’s physical position.

This can’t be “solved” as there is nothing wrong with that. You just need to take into account the difference between local time and UTC.
International servers usually use UTC to represent times. It’s up to the observer to localize that to his own position.

1 Like

Ok, it makes sense.

Thank you for you help.