Merge pull request #4188 from LuisFadini/0_15_brt_timezone

Added BRT timezone
This commit is contained in:
Frank
2024-10-13 11:01:05 +02:00
parent 12ef7cb285
commit 827cf87860
2 changed files with 7 additions and 0 deletions

View File

@@ -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;