Sunset MST/MDT

Subject: Possible daylight saving time / sunset calculation issue in Utah — WLED 0.16.0.1

I’m using WLED 0.16.0.1 on an ESP32 Ethernet Dig Quad controller in Woods Cross, Utah.

On November 1, 2026, after daylight saving time ended, my sunset-based lighting timers were activating approximately one hour later than expected.

My settings were:

  • Time zone: US-MST/MDT
  • UTC offset: 0 seconds
  • Latitude: 40.87 N
  • Longitude: 111.94 W
  • NTP synchronization: Enabled

WLED displayed sunset at 18:24 (6:24 PM), approximately one hour later than the expected local sunset of 17:24 (5:24 PM).

I was able to work around the issue by adjusting my sunset timer offsets, but I would like to know whether this is a daylight saving time bug or an issue with my configuration.

Could you investigate whether sunset calculations are correctly accounting for the transition from MDT to MST?

Thank you!

this may be a bug due to UTC vs. local date shift.

check if it sunrise and sunset are correct again today.

MST/MDT is specified as:

/* TZ_US_MOUNTAIN */ {
  {Second, Sun, Mar, 2, -360},  //MDT = UTC - 6 hours
  {First,  Sun, Nov, 2, -420}  //MST = UTC - 7 hours
},

Which means it changes on March 2nd and November 2nd.

EDIT: Sorry my bad. It should change on first Sunday in November at 2AM which in this case was Yesterday.

Yep looks like it switched last night. Thank you!

Then the issue most likely lies in Timezone library.