Created attachment 17442 [details]
Private fields inspect.
Inconsistent results in the serialization of TimeZoneInfo. A new instance generated after the methods ToSerializedString and FromSerializedString aren't evaluated as equals. See the bellow code and the picture attached.
public void TimeZoneInfoSerializeTest()
var tmz = TimeZoneInfo.GetSystemTimeZones().First();
var tmzS = TimeZoneInfo.FromSerializedString(tmz.ToSerializedString());
The error seems be with the private fields adjustmentRules (before null, after AdjustmentRule) and daylightDisplayName (before "", after "GMT").
I have tested using unit tests of a xamarin forms library running on the Android.
Please, see the remarks in the https://msdn.microsoft.com/en-us/library/bb382565(v=vs.110).aspx.
I was able to reproduce this issue on Mac using Mono.
## Steps to reproduce
1. Use the attached project to verify a nunit test.
## Actual Results
On Windows, using .NET it passes.
On Mac, using Mono it fails.
## Expected Results
Passes on both platforms.
Created attachment 23119 [details]
Fixed in master
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
Our sincere thanks to everyone who has contributed on this bug tracker
over the years. Thanks also for your understanding as we make these
adjustments and improvements for the future.