[Mono-bugs] [Bug 71213][Maj] Changed - System.IO.File.SetCreationTime does not save dates on files correctly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Jan 2005 14:05:59 -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 cgaisford@novell.com.

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

--- shadow/71213	2005-01-13 13:46:53.000000000 -0500
+++ shadow/71213.tmp.19603	2005-01-13 14:05:59.000000000 -0500
@@ -76,6 +76,18 @@
         writeTime("Access  : ", adt);
     }
 }
 
 ------- Additional Comments From cgaisford@novell.com  2005-01-12 14:00 -------
 I switched priority to Major because it completely breaks iFolder syncing.
+
+------- Additional Comments From cgaisford@novell.com  2005-01-13 14:05 -------
+After looking at the way mono is handling this, it would appear the
+bug is actually in DateTime.ToFileTime() maybe?  The docs for
+ToFileTime state
+
+"Converts the value of this instance to the format of a local
+operating system file time"
+
+I can't see where ToFileTime is taking into account the architecture.
+ I would think it should check BitConverter.IsLittleEndian() and swap
+the types according to the results.