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)";
|
||||
break;
|
||||
case "pgsql":
|
||||
return "EXTRACT(EPOCH FROM $column)";
|
||||
return "EXTRACT(EPOCH FROM $column::TIMESTAMP WITH TIME ZONE)";
|
||||
break;
|
||||
case "sqlite":
|
||||
return "STRFTIME('%s', $column)";
|
||||
|
Loading…
x
Reference in New Issue
Block a user