Time.timezone
#1563
|
Time.timezone and Time.dst I'm making a train clock that can be set via a website. But when I connect it to a power supply it shows: When I set timezone = -28800 and dst = 3600, the time is displayed |
Answered by
phoddie
Feb 4, 2026
Replies: 1 comment 1 reply
|
The ESP-IDF doesn't manage the timezone and DST offset across boots. The Moddable SDK ESP32 port provides tools so you can manage that.
|
1 reply
Answer selected by
Frida854
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ESP-IDF doesn't manage the timezone and DST offset across boots. The Moddable SDK ESP32 port provides tools so you can manage that.
Time.timezoneandTime.dstto set the timezone and DST offset to the values you want. That information might come from hard coded constants, a stored preference, user input, or the network.…