Browse Source

fixed php.FileSystem.stat

Franco Ponticelli 17 years ago
parent
commit
4a7ce88ee7
2 changed files with 4 additions and 3 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 3 3
      std/php/FileSystem.hx

+ 1 - 0
doc/CHANGES.txt

@@ -4,6 +4,7 @@ xxxx-xx-xx: 2.02 CVS
 	removed untested php classes (php.DBase, php.IniHash)
 	removed untested php classes (php.DBase, php.IniHash)
 	added -D use_rtti_doc
 	added -D use_rtti_doc
 	flash.Lib.getTimer() now returns Int and is inlined
 	flash.Lib.getTimer() now returns Int and is inlined
+	fixed php.FileSystem.stat
 
 
 2008-10-04: 2.01
 2008-10-04: 2.01
 	fixed php.Sys
 	fixed php.Sys

+ 3 - 3
std/php/FileSystem.hx

@@ -61,9 +61,9 @@ class FileSystem {
 		return untyped {
 		return untyped {
 			gid   : __php__("$fstat['gid']"),
 			gid   : __php__("$fstat['gid']"),
 			uid   : __php__("$fstat['uid']"),
 			uid   : __php__("$fstat['uid']"),
-			atime : Date.fromTime(__php__("$fstat['atime']")),
-			mtime : Date.fromTime(__php__("$fstat['mtime']")),
-			ctime : Date.fromTime(__php__("$fstat['ctime']")),
+			atime : Date.fromTime(__php__("$fstat['atime']")*1000),
+			mtime : Date.fromTime(__php__("$fstat['mtime']")*1000),
+			ctime : Date.fromTime(__php__("$fstat['ctime']")*1000),
 			dev   : __php__("$fstat['dev']"),
 			dev   : __php__("$fstat['dev']"),
 			ino   : __php__("$fstat['ino']"),
 			ino   : __php__("$fstat['ino']"),
 			nlink : __php__("$fstat['nlink']"),
 			nlink : __php__("$fstat['nlink']"),