2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 27 Feb 2003 16:20:24 +0000 (16:20 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 27 Feb 2003 16:20:24 +0000 (16:20 -0000)
* File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
SetCreationTime, SetLastAccessTime and SetLastWriteTime.

svn path=/trunk/mcs/; revision=12029

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/File.cs

index b61686b810f333bebeac51f9c86ee026bd6f5fd1..aadc19e001d6684f5010f262fff168a7c4236dd2 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * File.cs: fix by Elan Feingold <efeingold@mn.rr.com> for
+       SetCreationTime, SetLastAccessTime and SetLastWriteTime.
+
 2003-02-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * MemoryStream.cs:
index a5dd3caf0fa067b21387e4b7fd4e4d3a1c3da35f..406dcfd74c328da44c4b491dc4b268559db38d65 100644 (file)
@@ -268,7 +268,7 @@ namespace System.IO
                {
                        MonoIOError error;
                        
-                       if (!MonoIO.SetFileTime (path, creation_time.Ticks,
+                       if (!MonoIO.SetFileTime (path, creation_time.ToFileTime(),
                                                 -1, -1, out error)) {
                                throw MonoIO.GetException (path, error);
                        }
@@ -279,7 +279,7 @@ namespace System.IO
                        MonoIOError error;
                        
                        if (!MonoIO.SetFileTime (path, -1,
-                                                last_access_time.Ticks, -1,
+                                                last_access_time.ToFileTime(), -1,
                                                 out error)) {
                                throw MonoIO.GetException (path, error);
                        }
@@ -291,7 +291,7 @@ namespace System.IO
                        MonoIOError error;
                        
                        if (!MonoIO.SetFileTime (path, -1, -1,
-                                                last_write_time.Ticks,
+                                                last_write_time.ToFileTime(),
                                                 out error)) {
                                throw MonoIO.GetException (path, error);
                        }