Bug 26751 - partial DateTime parsing fails under certain TimeZone and time.
Summary: partial DateTime parsing fails under certain TimeZone and time.
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-02-04 15:09 UTC by Atsushi Eno
Modified: 2015-02-09 11:02 UTC (History)
2 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 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.

Related Links:
Status:
RESOLVED FIXED

Description Atsushi Eno 2015-02-04 15:09:26 UTC
I'm in Taiwan (+08:00) and it is in the midnight about 3am. Then this partial DateTime parsing test in corlib fails.

1) MonoTests.System.DateTimeOffsetTest.TestPartialDateTimeParsing :   String lengths are both 26. Strings differ at index 4.
  Expected: "02/05/2015 06:00:00 +00:00"
  But was:  "02/04/2015 06:00:00 +00:00"
  ---------------^

at MonoTests.System.DateTimeOffsetTest.TestPartialDateTimeParsing () [0x000fb] in /svn/mono/mcs/class/corlib/Test/System/DateTimeOffsetTest.cs:696
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

I have never seen such corlib failure before, so I think it is time dependent bug.
Comment 1 Marek Safar 2015-02-09 11:02:01 UTC
Fixed in master