Skip to content

Commit

Permalink
NEW Database->supportsTimezoneOverride()
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jul 5, 2012
1 parent 9ce0c9a commit 683d420
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion model/Database.php
Expand Up @@ -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?
*
Expand Down
4 changes: 4 additions & 0 deletions model/MySQLDatabase.php
Expand Up @@ -87,6 +87,10 @@ public function supportsCollations() {
return true;
}

public function supportsTimezoneOverride() {
return true;
}

/**
* Get the version of MySQL.
* @return string
Expand Down

0 comments on commit 683d420

Please sign in to comment.