[corlib] Tweak the fix for the reference sources' inability to support sub-minute...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 12 May 2015 10:22:35 +0000 (12:22 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 12 May 2015 11:17:47 +0000 (13:17 +0200)
commit926bd9d44c01e117c3c8f0bec63bd5c3d658f5bd
treefcb5e24f1da6f7295dac17e92e48483630a1c6e7
parent5f959e7bac89e1d052f8b92510de67598001ab70
[corlib] Tweak the fix for the reference sources' inability to support sub-minute DST offsets.

It seems the base utc offset can also have a sub-minute resolution
in Unix, which means we need to apply the whole-minute rounding to
the final result (dstDelta) instead of the intermediate ttype.Offset
value.

We need to try to fetch the exact timezone id to expose this bug,
since fetching all system timezones will just not return any
problematic timezones (and there is thus no way to distinguish
inexistent timezones from timezones that failed to load).
mcs/class/corlib/System/TimeZoneInfo.cs
mcs/class/corlib/Test/System/TimeZoneInfoTest.cs