mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
NEW Database->supportsTimezoneOverride()
This commit is contained in:
parent
9ce0c9a483
commit
683d420247
@ -891,6 +891,14 @@ abstract class SS_Database {
|
|||||||
*/
|
*/
|
||||||
abstract function datetimeDifferenceClause($date1, $date2);
|
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?
|
* Does this database support transactions?
|
||||||
*
|
*
|
||||||
|
@ -87,6 +87,10 @@ class MySQLDatabase extends SS_Database {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function supportsTimezoneOverride() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the version of MySQL.
|
* Get the version of MySQL.
|
||||||
* @return string
|
* @return string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user