Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Daylight Saving Time support. #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

levinedl
Copy link

  1. added DSTMode to left of TimeZone menu and moved HoursOffset to far right
  2. DSTMode can be:
    0: no DST support
    1: follows EU1996 schedule
    2: follows US2007 schedule
  3. if on DST, 1 hour is added to the time
  4. supports with or without GPS

David Levine added 2 commits April 25, 2020 17:27
1. added DSTMode to left of TimeZone menu and moved HoursOffset to far right
2. DSTMode can be:
   0: no DST support
   1: follows EU1996 schedule
   2: follows US2007 schedule
3. if on DST, 1 hour is added to the time
4. supports with or without GPS
This fixes occasional failure to reflect time zone (HoursOffset)
after updating the time from GPS.  The Time library contains a
refreshCache() function that updates the cache only if the time
has changed since the last cache update.

adjustTime does not call refreshCache().  hour() does call it, with
the current time.  If the current time is the same as the cached time
from the setTime() call, then the cache of tm is not updated to reflect
the adjustTime() call.  Then, the timezone adjustment is ignored.
@JeffRocchio
Copy link

Thank you levinedl for this update. It is unfortunate that afch has not merged this pull request. But I plan to incorporate into my own custom mods for the clock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants