mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: don't trigger notice but Debug::show it
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@113937 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fdebd72e97
commit
d01db84336
@ -34,7 +34,7 @@ class DbDatetimeTest extends FunctionalTest {
|
||||
self::$offset = time() - strtotime(DB::query('SELECT ' . DB::getConn()->now())->value());
|
||||
foreach(self::$offset_thresholds as $code => $offset) {
|
||||
if(abs(self::$offset) > $offset) {
|
||||
if($code == E_USER_ERROR) {
|
||||
if($code == E_USER_NOTICE) {
|
||||
Debug::show('The time of the database is out of sync with the webserver by ' . abs(self::$offset) . ' seconds.');
|
||||
} else {
|
||||
trigger_error('The time of the database is out of sync with the webserver by ' . abs(self::$offset) . ' seconds.', $code);
|
||||
|
Loading…
x
Reference in New Issue
Block a user