Don't validate empty TransitionTimes on deserialization. (#26405)
commit39ddea398311fcc08c589bc00d9c39e594e43c5d
authorEric Erhardt <eerhardt@microsoft.com>
Wed, 28 Aug 2019 03:21:42 +0000 (27 22:21 -0500)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 28 Aug 2019 09:55:07 +0000 (28 11:55 +0200)
tree2c66b2e9896180584ef864ac12bfbb55bc6cdef4
parentc534511003bdd84ef08dd8a7cf725d4d0f063f5e
Don't validate empty TransitionTimes on deserialization. (#26405)

On Unix, TransitionTimes are not used, so they are left empty. When deserializing an empty TransitionTime, it is throwing an exception because those are not normally valid. Fix deserialization to not validate empty TransitionTimes.

Fix dotnet/corefx 40578

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/TimeZoneInfo.TransitionTime.cs