Bug 34493 - Crash in timezone (seems tz is UTC0)
Summary: Crash in timezone (seems tz is UTC0)
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: BCL Class Libraries ()
Version: XI 8.9.x (iOS 8.3)
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-01 12:56 UTC by Grigory (Playtika)
Modified: 2017-07-26 14:36 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED NORESPONSE

Description Grigory (Playtika) 2015-10-01 12:56:04 UTC
System.TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.
  at System.TimeZoneInfo.GetMonoTouchData (System.String name, Boolean throw_on_error) [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.TimeZoneInfo.CreateLocal () [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.TimeZoneInfo.get_Local () [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.CurrentSystemTimeZone.GetUtcOffset (DateTime time) [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.TimeZone.ToLocalTime (DateTime time) [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.DateTime.ToLocalTime () [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.DateTime.FromFileTime (Int64 fileTime) [0x00000] in <filename unknown>:0  (code.cs:1)
  at System.IO.FileSystemInfo.get_LastWriteTime () [0x00000] in <filename unknown>:0  (code.cs:1)
Comment 1 Rodrigo Kumpera 2015-10-01 13:40:33 UTC
Please provide a test case that demonstrates the issue so we can fix it.
Comment 2 Grigory (Playtika) 2015-10-01 13:50:47 UTC
Look at the stacktrace. It is pretty obvious. 
Do you know what System.IO.File is ?

Or you are a bot that asks for repros ? 

IT IS CRAPPY LACK OF TZ INFO IN FRAMEWORK! 

And i dunno what TZ. Compare with .NET. IT is your job, not mine.
Comment 3 Rodrigo Kumpera 2015-10-01 15:02:48 UTC
Could you tell me the Timezone/locale configuration of the test device or
whether your app programmatically change this information.

It could be very much that the timezone you're asking is not available on the system. In which case is not a bug, but a limitation of the platform.
Comment 4 Kevin Mullins 2017-07-26 14:36:30 UTC
Because we have not received a reply to our request for more information, we are marking this issue as RESOLVED→NORESPONSE. If you are still encountering this issue on the latest Xamarin.iOS 10.12.0.14, please don’t hesitate to reopen the ticket with the requested information. Thanks!