Merge pull request #3 from club-1/fix-postgres-timestamp

fix: unixtimestamp calculation from PostgreSQL
This commit is contained in:
JodliDev 2022-04-30 11:03:59 +02:00 committed by GitHub
commit b9ff57cf21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)";
}