From 683d4202470a3af793e982e7c17f0ce19c718dda Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 5 Jul 2012 16:16:36 +0200 Subject: [PATCH] NEW Database->supportsTimezoneOverride() --- model/Database.php | 10 +++++++++- model/MySQLDatabase.php | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/model/Database.php b/model/Database.php index 8d41b6a739f..d76f73853b3 100644 --- a/model/Database.php +++ b/model/Database.php @@ -890,7 +890,15 @@ abstract function datetimeIntervalClause($date, $interval); * @return string SQL datetime expression to query for the interval between $date1 and $date2 in seconds which is the result of the substraction */ abstract function datetimeDifferenceClause($date1, $date2); - + + /** + * Can the database override timezone as a connection setting, + * or does it use the system timezone exclusively? + * + * @return Boolean + */ + abstract function supportsTimezoneOverride(); + /* * Does this database support transactions? * diff --git a/model/MySQLDatabase.php b/model/MySQLDatabase.php index 0d3324c40d9..b100b9934ef 100644 --- a/model/MySQLDatabase.php +++ b/model/MySQLDatabase.php @@ -87,6 +87,10 @@ public function supportsCollations() { return true; } + public function supportsTimezoneOverride() { + return true; + } + /** * Get the version of MySQL. * @return string