forked from gmag11/NtpClient
-
Notifications
You must be signed in to change notification settings - Fork 2
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
DST for all zones #1
Open
Diramu
wants to merge
31
commits into
xoseperez:master
Choose a base branch
from
Diramu:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ith ESPAsyncWebserver on windows machines
Calculate daylight and timezone changes without triggering a sync
Add support for USA DST calculation
This reverts commit 6790fb8.
…of summer time generic. dstDSTZone() still takes DST_ZONE_EU, DST_ZONE_USA otherwise it takes the start month, start week (1,2,3,4 or 5 for last), start day and end month, end week (1,2,3,4 or 5 for last), end day and hour (same for start and end). This should cover all DST in the world as show by wiki https://en.wikipedia.org/wiki/Daylight_saving_time_by_country
…date.pl TZupdate.pl also generated TZ.js to be used the the html to create a slection table to select TZ
retain whetherof the DST offset is in use
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added a new DSTZone OTHERS. setDSTZone has a second form, that take start month/week/day and end month/week/day and hour. week == 5 means the last week of the month.
Calls to setDSTZone with DST_ZONE_EU or DST_ZONE_USA is map to the new fully expanded version of for setDSTZone(). Instead of saving the _dstZOne, time_t values of _dstStart & _dstEnd (starting and ending time for summer time) are saved in the class. This make the testing of summer time simple, and works for the southern hemisphere. This change is required by a similar change to espurna.