Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NEW Database->supportsTimezoneOverride()

  • Loading branch information...
commit 683d4202470a3af793e982e7c17f0ce19c718dda 1 parent 9ce0c9a
@chillu chillu authored
Showing with 13 additions and 1 deletion.
  1. +9 −1 model/Database.php
  2. +4 −0 model/MySQLDatabase.php
View
10 model/Database.php
@@ -890,7 +890,15 @@ public function prepStringForDB($string) {
* @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?
*
View
4 model/MySQLDatabase.php
@@ -87,6 +87,10 @@ public function supportsCollations() {
return true;
}
+ public function supportsTimezoneOverride() {
+ return true;
+ }
+
/**
* Get the version of MySQL.
* @return string
Please sign in to comment.
Something went wrong with that request. Please try again.