Browse Source

Date.fromTime expects milliseconds (#6530)

AlexHaxe 8 years ago
parent
commit
f699ee5183
1 changed files with 1 additions and 1 deletions
  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);
 
    public static function secondsToDate(seconds:Float) : Dynamic
-      return Date.fromTime(seconds);
+      return Date.fromTime(seconds * 1000);
 
 }