mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
BUGFIX: Fixes #7123. Sets timezone of database if specified.
This commit is contained in:
parent
b9e63145b4
commit
43ac0a4641
@ -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;
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user