Merge pull request #3 from club-1/fix-postgres-timestamp
fix: unixtimestamp calculation from PostgreSQL
This commit is contained in:
commit
b9ff57cf21
1 changed files with 1 additions and 1 deletions
|
@ -2266,7 +2266,7 @@ else {
|
|||
{
|
||||
switch ($this->rc->db->db_provider) {
|
||||
case 'postgres':
|
||||
return "EXTRACT (EPOCH FROM $field)";
|
||||
return "EXTRACT (EPOCH FROM $field::timestamp without time zone)";
|
||||
default:
|
||||
return "UNIX_TIMESTAMP($field)";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue