浏览代码

Date.fromTime expects milliseconds (#6530)

AlexHaxe 8 年之前
父节点
当前提交
f699ee5183
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/cpp/_std/sys/db/Mysql.hx

+ 1 - 1
std/cpp/_std/sys/db/Mysql.hx

@@ -58,7 +58,7 @@ private class D {
       return haxe.io.Bytes.ofData(data);
       return haxe.io.Bytes.ofData(data);
 
 
    public static function secondsToDate(seconds:Float) : Dynamic
    public static function secondsToDate(seconds:Float) : Dynamic
-      return Date.fromTime(seconds);
+      return Date.fromTime(seconds * 1000);
 
 
 }
 }