Set time in offline mode

Hi All
I try to set time in offline mode but when MCU connected on particle cloud. It overwrite a time that i set before.
How can I do this issue

It is not possible to use a time other than the actual time returned from the cloud, if you connect to the Particle cloud.

What is the use case for setting the incorrect time?

1 Like

If you want to set your local time, you’d not do it by setting a “wrong” time but rather use the correct UTC time without time zone offset and then add the correct time zone via

To retrieve your local time you’d not use but Time.local() - all derivative functions (e.g. Time.hour() will also give you the localized version).


Thank you so much.