[Mono-bugs] [Bug 74266][Nor] New - pb in Stat with Daylight SAving Time Zones

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 31 Mar 2005 06:28:17 -0500 (EST)

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 fabrice@bellet.info.


--- shadow/74266	2005-03-31 06:28:17.000000000 -0500
+++ shadow/74266.tmp.16238	2005-03-31 06:28:17.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 74266
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Mono.POSIX
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: fabrice@bellet.info               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: pb in Stat with Daylight SAving Time Zones
+Description of Problem:
+There's a problem with UnixEpoch in Mono.Posix.Stat. In my current timezone
+(CEST, aka GMT+1 in winter, GMT+2 in summer), currently, mtime on recent
+files reports DateTime values that are one hour earlier than expected. The
+problem seems to caused by the fact that UnixEpoch is converted to
+Localtime, but no Localtime conversion is applied in UnixtoDateTime
+computation. In this case, the .ToLocalTime() conversion applies to the
+Epoch (GMT+1) and not to current date (GMT+2). So there is a 1 hour offset.