Bug 2936 - DateTime.FromFileTimeUTC has incorrect Kind set
Summary: DateTime.FromFileTimeUTC has incorrect Kind set
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-01-17 08:44 UTC by Tim Dawson
Modified: 2012-01-17 18:47 UTC (History)
3 users (show)

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:

Description Tim Dawson 2012-01-17 08:44:02 UTC
This is an easy bug with a trivial fix. The result of calling DateTime.FromFileTimeUTC should have its Kind property set to UTC. This matches with the Microsoft .net frameworks. At present, its kind ends up being set to Unspecified which causes validation errors in our cross-platform app (which we have temporarily worked around).
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-01-17 18:47:14 UTC
Fixed (master: 0a0d3534, 2.10: f6252f46, mobile-master: f6252f4).

The fix will be in MonoTouch 5.2.