1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Can't disable Daylight savings time

Discussion in 'Asuswrt-Merlin' started by fbreve, Oct 20, 2019.

  1. fbreve

    fbreve Occasional Visitor

    Joined:
    Nov 28, 2012
    Messages:
    47
    I noticed that Daylight savings time (DST) is enabled or disabled accordingly to the selected time zone.

    However, this year we don't have DST in Brazil. But the Brasilia time zone still enables DST and it is impossible to disable.

    I believe there should be an option to enable/disable DST in spite of the selected time zone.
     
  2. JDB

    JDB Very Senior Member

    Joined:
    Aug 28, 2016
    Messages:
    869
    Just set the start/stop dates/times as the same and it will never enable DST


    Sent from my iPhone using Tapatalk
     
  3. fbreve

    fbreve Occasional Visitor

    Joined:
    Nov 28, 2012
    Messages:
    47
    I can't. It says: "Specified time interval can not overlap."
     
  4. JDB

    JDB Very Senior Member

    Joined:
    Aug 28, 2016
    Messages:
    869
    Set it 1 hour apart so it’s only wrong for one hour of the year?


    Sent from my iPhone using Tapatalk
     
  5. Greg72

    Greg72 Regular Contributor

    Joined:
    Sep 24, 2019
    Messages:
    127
    Location:
    Central Illinois
    Set it for the first time at 23:59, second at 00:01.
     
  6. fbreve

    fbreve Occasional Visitor

    Joined:
    Nov 28, 2012
    Messages:
    47
    That's what I did. But this is a workaround. Not a proper solution. I'm suggesting that the correct way to deal with this thing is implemented.
     
  7. fbreve

    fbreve Occasional Visitor

    Joined:
    Nov 28, 2012
    Messages:
    47
    And actually, it has to be wrong for a whole day. It still complains about overlap if the difference is only one hour.
     
  8. Grisu

    Grisu Part of the Furniture

    Joined:
    Aug 28, 2014
    Messages:
    2,565
    you cant set minutes or seconds, only hours.

    So set begin any day at 23 o'clock hour and end to next day 1 o'clock (hour).

    Or use a different timezone with no DST.
     
  9. Greg72

    Greg72 Regular Contributor

    Joined:
    Sep 24, 2019
    Messages:
    127
    Location:
    Central Illinois
    Actually you can get Epoch to work with setting it that way. The OP is going to have to write a script. https://www.thegeekdiary.com/how-to...gs-time-dst-and-modify-the-timezone-on-linux/. The other method would be to setup a NTP server on their network with something like a Raspbeery Pi or Arduino with a RTC hat.

    Amazon has a NTP service on their AWS. https://aws.amazon.com/blogs/aws/keeping-time-with-amazon-time-sync-service/. There is also Chrony. https://chrony.tuxfamily.org/faq.html
     
    Last edited: Oct 20, 2019
  10. JDB

    JDB Very Senior Member

    Joined:
    Aug 28, 2016
    Messages:
    869
    It relies on an archaic time zone implementation deep in the firmware which Merlin won’t want to fix. Asus could but again it’s not as simple as you’d hope is my understanding.


    Sent from my iPhone using Tapatalk
     
  11. LHF

    LHF Regular Contributor

    Joined:
    Dec 1, 2012
    Messages:
    104
    Location:
    Brazil
    Hi Greg!

    Cannot find the option to set time to start and finish DST .... I can only set the date. Do you know where I can find it? Running Merlin 384.5 RT-AC86U as main router and 380.67 RT-AC68U as access point.

    Thanks!
     
  12. dave14305

    dave14305 Very Senior Member

    Joined:
    May 19, 2018
    Messages:
    1,334
    I was wondering if it’s as “simple” as removing the DST characters from this line in the code:
    https://github.com/RMerl/asuswrt-me...c/router/www/Advanced_System_Content.asp#L820

    If it contains DST, it populates the DST start/end dates.
     
  13. JDB

    JDB Very Senior Member

    Joined:
    Aug 28, 2016
    Messages:
    869
    Yes but you need a recent source for which time zones do/don’t observe DST which changes more often than you think! So hardcoding it there would be a forever maintenance job for all the fringe cases such as the OP


    Sent from my iPhone using Tapatalk
     
  14. dave14305

    dave14305 Very Senior Member

    Joined:
    May 19, 2018
    Messages:
    1,334
    A good job for an open source project contributor! :)
     
    Greg72 likes this.
  15. Greg72

    Greg72 Regular Contributor

    Joined:
    Sep 24, 2019
    Messages:
    127
    Location:
    Central Illinois
  16. JDB

    JDB Very Senior Member

    Joined:
    Aug 28, 2016
    Messages:
    869
  17. Greg72

    Greg72 Regular Contributor

    Joined:
    Sep 24, 2019
    Messages:
    127
    Location:
    Central Illinois
  18. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,595
    Location:
    UK
    Given the source code you linked to it would appear that a workaround for the OP would be to select "Buenos Aires, Georgetown". That appears to be GMT-03:00 (UTC3) with no DST.
     
    dave14305 likes this.
  19. JDB

    JDB Very Senior Member

    Joined:
    Aug 28, 2016
    Messages:
    869
    This is definitely the best solution until such time that Brazil can make their damn minds up about if they are doing DST or not and the code can be left as is or changed to remove it!


    Sent from my iPhone using Tapatalk
     
  20. RMerlin

    RMerlin Super Moderator

    Joined:
    Apr 14, 2012
    Messages:
    31,304
    Location:
    Canada
    To be blunt, the correct way for this to be done is for countries not to change the rules whenever they feel like it. As you can imagine, every single device in the world that has the established rules will suffer from the same problem. There is no way for device manufacturers to deal with such random exceptions.