[Mono-bugs] [Bug 75995][Nor] Changed -
DateTimeStyles.AdjustToUniversal ignored when UTC indicated by 'Z'
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 5 19:44:57 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:38:58.000000000 -0400
+++ shadow/75995.tmp.23399 2005-09-05 19:44:57.000000000 -0400
@@ -2,13 +2,13 @@
Product: Mono: Class Libraries
Version: 1.1
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: brion at pobox.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -44,6 +44,46 @@
Windows XPSP2. .NET 1.1 on Windows XP outputs the expected time.
------- Additional Comments From brion at pobox.com 2005-09-05 19:38 -------
Created an attachment (id=15697)
Short C# programming showing different treatment of timestamps
+
+------- Additional Comments From brion at pobox.com 2005-09-05 19:44 -------
+Output of the attached program should be the same for all three
+formats, and for direct parsing with AdjustToUniversal and conversion
+via localtime with ToUniversalTime(), but on Mono they differ for the
+Z version:
+
+$ mono Utc.exe
+Original input: 2005-09-05T22:29:00Z
+Parsed local time: 9/5/2005 3:29:00 PM
+AdjustToUniversal: 9/5/2005 3:29:00 PM
+ToUniversalTime(): 9/5/2005 10:29:00 PM
+
+Original input: 2005-09-05T22:29:00+0000
+Parsed local time: 9/5/2005 3:29:00 PM
+AdjustToUniversal: 9/5/2005 10:29:00 PM
+ToUniversalTime(): 9/5/2005 10:29:00 PM
+
+Original input: 2005-09-05T15:29:00-0700
+Parsed local time: 9/5/2005 3:29:00 PM
+AdjustToUniversal: 9/5/2005 10:29:00 PM
+ToUniversalTime(): 9/5/2005 10:29:00 PM
+
+
+Output on .NET 1.1 / WinXP SP2:
+Original input: 2005-09-05T22:29:00Z
+Parsed local time: 9/5/2005 3:29:00 PM
+AdjustToUniversal: 9/5/2005 10:29:00 PM
+ToUniversalTime(): 9/5/2005 10:29:00 PM
+
+Original input: 2005-09-05T22:29:00+0000
+Parsed local time: 9/5/2005 3:29:00 PM
+AdjustToUniversal: 9/5/2005 10:29:00 PM
+ToUniversalTime(): 9/5/2005 10:29:00 PM
+
+Original input: 2005-09-05T15:29:00-0700
+Parsed local time: 9/5/2005 3:29:00 PM
+AdjustToUniversal: 9/5/2005 10:29:00 PM
+ToUniversalTime(): 9/5/2005 10:29:00 PM
+
More information about the mono-bugs
mailing list