From 827cf8786045eb2853ff640efd9407925d8db683 Mon Sep 17 00:00:00 2001
From: Frank <91616163+softhack007@users.noreply.github.com>
Date: Sun, 13 Oct 2024 11:01:05 +0200
Subject: [PATCH] Merge pull request #4188 from LuisFadini/0_15_brt_timezone
Added BRT timezone
---
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 52f3385ea2..0c6e68a790 100644
--- a/wled00/data/settings_time.htm
+++ b/wled00/data/settings_time.htm
@@ -182,6 +182,7 @@
Time setup
+
UTC offset: seconds (max. 18 hours)
Current local time is unknown.
diff --git a/wled00/ntp.cpp b/wled00/ntp.cpp
index fb5e85b3ae..ddebd9499a 100644
--- a/wled00/ntp.cpp
+++ b/wled00/ntp.cpp
@@ -48,6 +48,7 @@ Timezone* tz = nullptr;
#define TZ_ANCHORAGE 20
#define TZ_MX_CENTRAL 21
#define TZ_PAKISTAN 22
+#define TZ_BRASILIA 23
#define TZ_INIT 255
byte tzCurrent = TZ_INIT; //uninitialized
@@ -168,6 +169,11 @@ void updateTimezone() {
tcrStandard = tcrDaylight;
break;
}
+ case TZ_BRASILIA : {
+ tcrDaylight = {Last, Sun, Mar, 1, -180}; //BrasÃlia Standard Time = UTC - 3 hours
+ tcrStandard = tcrDaylight;
+ break;
+ }
}
tzCurrent = currentTimezone;