You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AEST Time Is Incorrect For DayLight Savings In October #2820
On the first Sunday in October each year, the AEST time zone moves forward by one hour. Last Sunday (2nd October), the current time displayed in the WLED app was NOT updated to reflect the new Daylight savings time. (I saw this under Time and Macros>Time Setup>Current local Time.) I ended up requesting help in your Discord server and I had "blazoncek" kindly investigate and he came back to me with what we think is the reason why it didn't update on the 2nd October.
In the attached file, I think the issue is that the first line of code with tcrDaylight = {Second, Sun, Oct, 2, 660} //AEDT = UTC + 11 Hours
I'm guessing that the "Second" refers to the Second Sunday of October to start Day Light Savings Time?
Right now as I type this, it's Sunday 9th October (Second Sunday) and I've noticed that the "Current Local Time" is now CORRECT. However, for the last 7 days, it has been incorrect, meaning all my lights turn on and off at the Non Day Light Saving Time.
So maybe the fix is: tcrDaylight = {First, Sun, Oct, 2, 660} //AEDT = UTC + 11 Hours
To Reproduce Bug
'Current Local Time' in the WLED app in Australia between the first Sunday of October to the Second Sunday of October is incorrect as it fails to advance the time forward by one hour to reflect the new Day Light Savings time.
Expected Behavior
On the first Sunday in October each year, AEST time needs to advance forward by one hour. For example if the old time was 10AM, the WLED Current Local Time should show 11AM. (Daylight savings time ends in the first Sunday of April- which I think is correct in the code above. )
Install Method
Self-Compiled
What version of WLED?
WLED 0.13.3
Which microcontroller/board are you seeing the problem on?
I think it's worth double checking the other timezones too. For instance NZ is down as second Sunday in September, but according to the New Zealand government it changes on the last Sunday.
Activity
domdfcoding commentedon Oct 12, 2022
I think it's worth double checking the other timezones too. For instance NZ is down as second Sunday in September, but according to the New Zealand government it changes on the last Sunday.
https://github.com/Aircoookie/WLED/blob/e362b3b6aa524441c1ab963c4a470a207e83f922/wled00/ntp.cpp#L100-L104
Fixed AEST and NZST DST change dates (resolves #2820 )
Aircoookie commentedon Oct 12, 2022
Thank you for bringing this to my attention! Both NZ and AEST should now be fixed in 0_14 :)
greensleeves149 commentedon Oct 13, 2022
Great. Thank you for actioning this so quickly too.
some bugfixes from upstream 0.14.0
Fixed AEST and NZST DST change dates (resolves wled#2820 )