This repository was archived by the owner on Sep 10, 2025. It is now read-only.
How do I create a custom clock to show 24hour UTC time with daylight savings time properly? #1422
Answered
by
marticliment
davehouser1
asked this question in
Q&A
|
I had the following custom clock set up before daylight savings time This worked fine an displayed the 24h UTC time for EST. After daylight savings time happened my time was off by hour. So I changed the clock to this (Notice the This works, however when 23:00 UTC happens, I actually see Is there a way to implement daylight savings time to the custom clock? |
Answered by
marticliment
Apr 2, 2025
Replies: 1 comment 9 replies
|
Hello @davehouser1, For the hour, you can use |
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it is working as expected. Here you are subtracting 3600 seconds (1 hour) from the time shown on the second line. Therefore, if your time is 1PM (13h), it will show 12PM (12h). If you want it to be 17h, you will need to change -3600 for +14400