From d01db843362837dd0b89aa4f5dc7014acc43be41 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Fri, 19 Nov 2010 01:13:32 +0000 Subject: [PATCH] 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 --- tests/model/DbDatetimeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model/DbDatetimeTest.php b/tests/model/DbDatetimeTest.php index e2aaa0af0..5d189a823 100644 --- a/tests/model/DbDatetimeTest.php +++ b/tests/model/DbDatetimeTest.php @@ -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);