Skip to content
This repository
Browse code

NEW Database->supportsTimezoneOverride()

  • Loading branch information...
commit 683d4202470a3af793e982e7c17f0ce19c718dda 1 parent 9ce0c9a
Ingo Schommer authored
10  model/Database.php
@@ -890,7 +890,15 @@ public function prepStringForDB($string) {
890 890
 	 * @return string SQL datetime expression to query for the interval between $date1 and $date2 in seconds which is the result of the substraction
891 891
 	 */
892 892
 	abstract function datetimeDifferenceClause($date1, $date2);
893  
-	
  893
+
  894
+	/**
  895
+	 * Can the database override timezone as a connection setting,
  896
+	 * or does it use the system timezone exclusively?
  897
+	 * 
  898
+	 * @return Boolean
  899
+	 */
  900
+	abstract function supportsTimezoneOverride();
  901
+
894 902
 	/*
895 903
 	 * Does this database support transactions?
896 904
 	 * 
4  model/MySQLDatabase.php
@@ -87,6 +87,10 @@ public function supportsCollations() {
87 87
 		return true;
88 88
 	}
89 89
 
  90
+	public function supportsTimezoneOverride() {
  91
+		return true;
  92
+	}
  93
+
90 94
 	/**
91 95
 	 * Get the version of MySQL.
92 96
 	 * @return string

0 notes on commit 683d420

Please sign in to comment.
Something went wrong with that request. Please try again.