Merge pull request #5273 from nomis52/awst
Add support for Australian Western Time
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user