[Mono-bugs] [Bug 81229][Cri] New - daylight saving time is broken during time change

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 25 00:22:42 EDT 2007


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 jan.oravec at 6com.sk.

http://bugzilla.ximian.com/show_bug.cgi?id=81229

--- shadow/81229	2007-03-24 23:22:42.000000000 -0500
+++ shadow/81229.tmp.5307	2007-03-24 23:22:42.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 81229
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: Gentoo Linux, timezone-data-2007c, mono-1.2.3.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jan.oravec at 6com.sk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: daylight saving time is broken during time change
+
+I am in CET timezone with daylight saving time. The time has today
+(25.3.2007) changed from 02:00 CET to 03:00 CEST. Mono did not handle it
+correctly.
+
+Time was correct before 02:00 CET and after 04:00 CEST. during 03:00-04:00
+CEST, Mono had following behavior:
+
+# date
+Sun Mar 25 03:08:43 CEST 2007
+# date -u
+Sun Mar 25 01:08:43 UTC 2007
+
+DateTime.UtcNow: 03/25/2007 01:08:43 (correct)
+DateTime.Now:    03/25/2007 01:08:43 (invalid)
+
+lz = TimeZone.CurrentTimeZone;
+
+lz.StandardName: CET
+lz.DaylightName: CEST
+lz.GetDaylightChanges (2007).Start: 03/25/2007 02:00:00
+lz.GetDaylightChanges (2007).End: 10/28/2007 03:00:00
+lz.GetDaylightChanges (2007).Delta: 01:00:00
+
+So, the time was going:
+
+TZ:    CET      CEST     CEST     CEST     CEST     CEST
+UTC:   00:59 -> 01:00 -> 01:01 -> 01:59 -> 02:00 -> 02:01
+LOCAL: 01:59 -> 03:00 -> 03:01 -> 03:59 -> 04:00 -> 04:01
+MONO:  01:59 -> 01:00 -> 01:01 -> 01:59 -> 04:00 -> 04:01
+       OK       FAIL     FAIL     FAIL     OK       OK


More information about the mono-bugs mailing list