Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
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.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
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