summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/sql/src/Adapter/Pgsql.php
blob: 18bf15dc3007c0fde8aebe8fc3b1bc742894358c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace ipl\Sql\Adapter;

use ipl\Sql\Connection;

class Pgsql extends BaseAdapter
{
    public function setClientTimezone(Connection $db)
    {
        $db->exec(sprintf('SET TIME ZONE INTERVAL %s HOUR TO MINUTE', $db->quote($this->getTimezoneOffset())));

        return $this;
    }
}