[Mono-bugs] [Bug 75985][Nor] Changed - DateTime.Parse applies timezone incorrectly around daylight saving time transition

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 5 08:58:06 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=75985

--- shadow/75985	2005-09-05 08:54:40.000000000 -0400
+++ shadow/75985.tmp.12621	2005-09-05 08:58:06.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: ---
@@ -47,6 +47,97 @@
 round-trip on a conversion back with ToUniversalTime().
 
 ------- Additional Comments From brion at pobox.com  2005-09-05 08:54 -------
 Created an attachment (id=15693)
 Sample C# program to demonstrate incorrect timezone mapping
 
+
+------- Additional Comments From brion at pobox.com  2005-09-05 08:58 -------
+Output of sample program, showing correct 'missing hour' during DST
+transition on .NET 1.1/WinXP, and incorrect several hours on Mono
+1.1.8. (Set TZ=America/Los_Angeles if not set for Pacific time to
+reproduce exactly. Similar effects will be found for other timezones,
+at different offsets.)
+
+C:\src\date>Timezone
+
+In PDT/PST transition, 1-2am happens twice
+
+2003-10-26T00:50:47Z == 2003-10-26T00:50:47Z (via local 10/25/2003
+5:50:47 PM
+
+2003-10-26T01:50:47Z == 2003-10-26T01:50:47Z (via local 10/25/2003
+6:50:47 PM
+
+2003-10-26T02:50:47Z == 2003-10-26T02:50:47Z (via local 10/25/2003
+7:50:47 PM
+
+2003-10-26T03:50:47Z == 2003-10-26T03:50:47Z (via local 10/25/2003
+8:50:47 PM
+
+2003-10-26T04:50:47Z == 2003-10-26T04:50:47Z (via local 10/25/2003
+9:50:47 PM
+
+2003-10-26T05:50:47Z == 2003-10-26T05:50:47Z (via local 10/25/2003
+10:50:47 PM
+
+2003-10-26T06:50:47Z == 2003-10-26T06:50:47Z (via local 10/25/2003
+11:50:47 PM
+
+2003-10-26T07:50:47Z == 2003-10-26T07:50:47Z (via local 10/26/2003
+12:50:47 AM
+
+2003-10-26T08:50:47Z == 2003-10-26T08:50:47Z (via local 10/26/2003
+1:50:47 AM
+
+2003-10-26T09:50:47Z != 2003-10-26T08:50:47Z (via local 10/26/2003
+1:50:47 AM
+
+2003-10-26T10:50:47Z == 2003-10-26T10:50:47Z (via local 10/26/2003
+2:50:47 AM
+
+2003-10-26T11:50:47Z == 2003-10-26T11:50:47Z (via local 10/26/2003
+3:50:47 AM
+
+
+
+C:\src\date>mono Timezone.exe
+
+In PDT/PST transition, 1-2am happens twice
+
+2003-10-26T00:50:47Z == 2003-10-26T00:50:47Z (via local 10/25/2003
+5:50:47 PM
+
+2003-10-26T01:50:47Z == 2003-10-26T01:50:47Z (via local 10/25/2003
+6:50:47 PM
+
+2003-10-26T02:50:47Z != 2003-10-26T01:50:47Z (via local 10/25/2003
+6:50:47 PM
+
+2003-10-26T03:50:47Z != 2003-10-26T02:50:47Z (via local 10/25/2003
+7:50:47 PM
+
+2003-10-26T04:50:47Z != 2003-10-26T03:50:47Z (via local 10/25/2003
+8:50:47 PM
+
+2003-10-26T05:50:47Z != 2003-10-26T04:50:47Z (via local 10/25/2003
+9:50:47 PM
+
+2003-10-26T06:50:47Z != 2003-10-26T05:50:47Z (via local 10/25/2003
+10:50:47 PM
+
+2003-10-26T07:50:47Z != 2003-10-26T06:50:47Z (via local 10/25/2003
+11:50:47 PM
+
+2003-10-26T08:50:47Z != 2003-10-26T07:50:47Z (via local 10/26/2003
+12:50:47 AM
+
+2003-10-26T09:50:47Z != 2003-10-26T08:50:47Z (via local 10/26/2003
+1:50:47 AM
+
+2003-10-26T10:50:47Z == 2003-10-26T10:50:47Z (via local 10/26/2003
+2:50:47 AM
+
+2003-10-26T11:50:47Z == 2003-10-26T11:50:47Z (via local 10/26/2003
+3:50:47 AM
+
+


More information about the mono-bugs mailing list