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
Developer Community or GitHub 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.
In MonoDroid 3.0.4, TimeZoneInfo.FindSystemTimeZoneById returns null instead of throwing a TimeZoneNotFoundException as specified in the MS .NET System.TimeZoneInfo documentation.
TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
returns null under MonoDroid.
Seems specific to Mono for Android,since the Mono console app produces the "correct" result with the same code.
The bug has been identified in mcs/class/System.Core/System/TImeZoneInfo.Android.cs!GetTimeZone(string).
If we cannot find the requested time zone we should throw a
TimeZoneNotFoundException rather than returning null.
1: Fixed in master/a56f69f82d
2) Fixed in mono-2-10/ddaa82c2b7
3) Fixed in mobile-master/15150dcd41
The first fix had an error in the compare statement
1: Fixed in master/956841a964
2: Fixed in mono-2-10/c310d28fa3
3: Fixed in mobile-master/e2c99b7545