Browse Source

Fix Spod Timestamp conversion

This fixed some PHP related Spod problems for me, i will ask franco to review this change.
frabbit 12 năm trước cách đây
mục cha
commit
dabd1e66fc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/php/_std/sys/db/Mysql.hx

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

@@ -138,7 +138,7 @@ private class MysqlResultSet implements ResultSet {
 				return untyped __call__("intval", v);
 			case "real":
 				return untyped __call__("floatval", v);
-			case "datetime", "date":
+			case "datetime", "date", "timestamp":
 				return Date.fromString(v);
 			case "blob":
 				return haxe.io.Bytes.ofData(cast v);