Merge pull request #3 from robert-h-curry/7123-postgresql-dbdatetime-test-failure

BUGFIX: Fixes #7123. Sets timezone of database if specified.
This commit is contained in:
Sean Harvey 2012-04-15 16:59:20 -07:00
commit ae506b4a65

View File

@ -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;
}
/**