Replicate .NET's TimeZoneInfo.IsDaylightSavingTime() and GetUtcOffset()
commit4f070dea31bf094578150d5e4f6307e3ee6020fe
authorNiklas Therning <niklas@therning.org>
Wed, 14 Sep 2016 10:00:07 +0000 (14 12:00 +0200)
committerNiklas Therning <niklas@therning.org>
Wed, 14 Sep 2016 10:00:07 +0000 (14 12:00 +0200)
treeb061f7d7b1931742efc8f434ecbf83cfb1f22993
parentd06354174070d01394f5e75ffcfc9c1110a1e7db
Replicate .NET's TimeZoneInfo.IsDaylightSavingTime() and GetUtcOffset()
behaviour when passed times within the lost period at DST start

When passed a time within this period .NET's IsDaylightSavingTime() returns
true while GetUtcOffset() returns the BaseUtcOffset without the DST delta
added. This patch changes the behaviour in Mono to do what .NET does.
mcs/class/corlib/System/TimeZoneInfo.cs
mcs/class/corlib/Test/System/TimeZoneInfoTest.cs