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

DST for all zones #1

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

DST for all zones #1

wants to merge 31 commits into from

Conversation

Diramu
Copy link

@Diramu Diramu commented Sep 11, 2018

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.

xoseperez and others added 30 commits January 21, 2018 00:19
Calculate daylight and timezone changes without triggering a sync
Add support for USA DST calculation
…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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants