NEW Database->supportsTimezoneOverride()

This commit is contained in:
Ingo Schommer 2012-07-05 16:16:36 +02:00
parent 9ce0c9a483
commit 683d420247
2 changed files with 13 additions and 1 deletions

View File

@ -890,7 +890,15 @@ abstract class SS_Database {
* @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 File

@ -87,6 +87,10 @@ class MySQLDatabase extends SS_Database {
return true;
}
public function supportsTimezoneOverride() {
return true;
}
/**
* Get the version of MySQL.
* @return string