From 69fa3378a4c5867b3cfe5811d0d697af1bd3aece Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Wed, 7 Jan 2026 18:21:47 +0000 Subject: [PATCH] Merge pull request #5273 from nomis52/awst Add support for Australian Western Time --- wled00/data/settings_time.htm | 1 + wled00/ntp.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/wled00/data/settings_time.htm b/wled00/data/settings_time.htm index 0c6e68a7..26f3dfa8 100644 --- a/wled00/data/settings_time.htm +++ b/wled00/data/settings_time.htm @@ -183,6 +183,7 @@ +
UTC offset: seconds (max. 18 hours)
Current local time is unknown.
diff --git a/wled00/ntp.cpp b/wled00/ntp.cpp index ddebd949..4f0c3051 100644 --- a/wled00/ntp.cpp +++ b/wled00/ntp.cpp @@ -49,6 +49,8 @@ Timezone* tz = nullptr; #define TZ_MX_CENTRAL 21 #define TZ_PAKISTAN 22 #define TZ_BRASILIA 23 +#define TZ_AUSTRALIA_WESTERN 24 + #define TZ_INIT 255 byte tzCurrent = TZ_INIT; //uninitialized @@ -174,6 +176,10 @@ void updateTimezone() { tcrStandard = tcrDaylight; break; } + case TZ_AUSTRALIA_WESTERN : { + tcrDaylight = {Last, Sun, Mar, 1, 480}; //AWST = UTC + 8 hours + tcrStandard = tcrDaylight; //AWST = UTC + 8 hours (no DST) + break; } tzCurrent = currentTimezone;