Skip to content
Discussion options

You must be logged in to vote

When I look at timeZoneInfo.GetAdjustmentRules() for Europe/Berlin on Windows, I see:

Rule valid: 1. 1. 0001 0:00:00 - 31. 12. 9999 0:00:00
DST period: Sunday, 5. week in 3. month at 02:00:00 - Sunday, 5. week in 10. month at 03:00:00
DST delta: 01:00:00

I.e. Windows simplifies things and assumes that time zone always followed its current DST rules.

On the other hand, on Linux (which uses the tzdb), there is no DST adjustment rule between 1949 and 1980, which seems to be correct (Germany did not observe DST during this period).

So the Windows result is incorrect, but there's not much .Net can do about that, since it just takes the data from Windows.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Clockwork-Muse
Comment options

Answer selected by mu88
Comment options

You must be logged in to vote
1 reply
@mu88
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants