Bug 8739 - ArgumentOutOfRangeException when parsing the value of DateTimeOffset.MinValue
Summary: ArgumentOutOfRangeException when parsing the value of DateTimeOffset.MinValue
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-12-03 20:07 UTC by Paul Ryland
Modified: 2013-05-13 21:44 UTC (History)
2 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 Paul Ryland 2012-12-03 20:07:31 UTC
The following code generates an ArgumentOutOfRangeException:

  var dto = DateTimeOffset.Parse(DateTimeOffset.MinValue.ToString("o"));

The same code under .NET does not throw an exception.

The equivalent code using DateTimeOffset.MaxValue does not seem to have any problems
Comment 1 Peter Collins 2013-05-13 21:44:56 UTC
Unable to reproduce this with the above code snippet on our current stable build of Xamarin.Android (4.6.04000). Resolving this bug, please re-open if you are still able experiencing any issues with DateTimeOffset.MinValue.