Skip to content

AEST Time Is Incorrect For DayLight Savings In October #2820

Closed

Description

@greensleeves149

What happened?

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

AEST Daylight Savings Issue

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?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. domdfcoding commented on Oct 12, 2022

    @domdfcoding

    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

  2. added a commit that references this issue on Oct 12, 2022
    d6749d3
  3. Aircoookie commented on Oct 12, 2022

    @Aircoookie
    Member

    Thank you for bringing this to my attention! Both NZ and AEST should now be fixed in 0_14 :)

  4. greensleeves149 commented on Oct 13, 2022

    @greensleeves149
    Author

    Great. Thank you for actioning this so quickly too.

  5. added a commit that references this issue on Oct 20, 2022
  6. added a commit that references this issue on Aug 18, 2026
    f2e76aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions