Add MX-CST/CDT Time Zone

Add the Mexico City CST/CDT timezone.
The start and finish date for DLS differs with the US-CST/CDT rules.
This commit is contained in:
Rod Minor
2021-11-02 21:26:11 -06:00
parent 7e1920dc4b
commit 46e7db6d94
3 changed files with 8 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ Timezone* tz;
#define TZ_HAWAII 18
#define TZ_NOVOSIBIRSK 19
#define TZ_ANCHORAGE 20
#define TZ_MX_CENTRAL 21
#define TZ_INIT 255
byte tzCurrent = TZ_INIT; //uninitialized
@@ -141,6 +142,11 @@ void updateTimezone() {
tcrStandard = {First, Sun, Nov, 2, -540}; //AKST = UTC - 9 hours
break;
}
case TZ_MX_CENTRAL : {
tcrDaylight = {First, Sun, Apr, 2, -300}; //CDT = UTC - 5 hours
tcrStandard = {Last, Sun, Oct, 2, -360}; //CST = UTC - 6 hours
break;
}
}
tzCurrent = currentTimezone;