[Mono-bugs] [Bug 75995][Nor] New - DateTimeStyles.AdjustToUniversal
ignored when UTC indicated by 'Z'
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 5 19:37:56 EDT 2005
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 brion at pobox.com.
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: mono-bugs at ximian.com
+ReportedBy: brion at pobox.com
+QAContact: mono-bugs at ximian.com
+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.
More information about the mono-bugs
mailing list