Fix position time zone problem in PostgreSQL, fixes #123
This commit is contained in:
parent
55e5319f19
commit
fb29f45f47
@ -159,7 +159,7 @@ require_once(ROOT_DIR . "/helpers/utils.php");
|
|||||||
return "UNIX_TIMESTAMP($column)";
|
return "UNIX_TIMESTAMP($column)";
|
||||||
break;
|
break;
|
||||||
case "pgsql":
|
case "pgsql":
|
||||||
return "EXTRACT(EPOCH FROM $column)";
|
return "EXTRACT(EPOCH FROM $column::TIMESTAMP WITH TIME ZONE)";
|
||||||
break;
|
break;
|
||||||
case "sqlite":
|
case "sqlite":
|
||||||
return "STRFTIME('%s', $column)";
|
return "STRFTIME('%s', $column)";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user