diff --git a/code/PostgreSQLDatabase.php b/code/PostgreSQLDatabase.php index 11b6cb2..1db0b2d 100755 --- a/code/PostgreSQLDatabase.php +++ b/code/PostgreSQLDatabase.php @@ -173,6 +173,9 @@ class PostgreSQLDatabase extends SS_Database { $this->setSchema($schema); + // Set the timezone if required. + if(isset($parameters['timezone'])) $this->query(sprintf("SET SESSION TIME ZONE '%s'", $parameters['timezone'])); + return true; } /**