Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75995 --- shadow/75995 2005-09-05 19:37:56.000000000 -0400 +++ shadow/75995.tmp.23310 2005-09-05 19:37:56.000000000 -0400 @@ -0,0 +1,44 @@ +Bug#: 75995 +Product: Mono: Class Libraries +Version: 1.1 +OS: All +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: DateTimeStyles.AdjustToUniversal ignored when UTC indicated by 'Z' + +Description of Problem: +When DateTime.Parse is given the DateTimeStyles.AdjustToUniversal flag, the +output should be in universal time (UTC) instead of the default local time. + +A timestamp in the format '2005-09-05T22:29:00Z', with the UTC timezone +indicated by the Z, is incorrectly converted from UTC to local time even +when this flag is passed. + +Steps to reproduce the problem: +1. Set timezone to America/Los_Angeles +2. Console.WriteLine(DateTime.Parse("2005-09-05T22:29:00Z", + CultureInfo.InvariantCulture, + DateTimeStyles.AdjustToUniversal)) + +Actual Results: +9/5/2005 3:29:00 PM + +Expected Results: +9/5/2005 10:29:00 PM + +How often does this happen? +Every time. + +Additional Information: +Tested Mono from SVN compiled on Linux, 2005-09-05, and Mono 1.1.8-1 on +Windows XPSP2. .NET 1.1 on Windows XP outputs the expected time. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
