From 8c5d1e640a220a138294575c5770c7e9da0d46a3 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 24 Mar 2008 20:39:47 +0000 Subject: fixed #819 --- HISTORY | 1 + framework/Util/TLogRouter.php | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/HISTORY b/HISTORY index 5424c4ca..f1958572 100644 --- a/HISTORY +++ b/HISTORY @@ -22,6 +22,7 @@ BUG: Ticket#799 - Fixed several link errors in documentation about PDO (Qiang) BUG: Ticket#803 - TActiveRecord cannot be serialized/unserialized correctly. (Qiang) BUG: Ticket#808 - Client side validation should work for file upload. (Qiang) BUG: Fixed a bug in TPropertyValue::ensureArray() (Qiang) +CHG: Ticket#819 - TLogRoute now displays GM time instead of local time (Qiang) CHG: Changed TConditional so that the controls in its template behave like they are in its parent (Qiang) CHG: Active Record many-to-many relationship change from self::HAS_MANY to self::MANY_TO_MANY (Wei) CHG: Active Record no longer automatically performs adding/removing/updating related objects (Qiang) diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 3a08fd63..50789011 100644 --- a/framework/Util/TLogRouter.php +++ b/framework/Util/TLogRouter.php @@ -277,7 +277,7 @@ abstract class TLogRoute extends TApplicationComponent */ protected function formatLogMessage($message,$level,$category,$time) { - return @date('M d H:i:s',$time).' ['.$this->getLevelName($level).'] ['.$category.'] '.$message."\n"; + return @gmdate('M d H:i:s',$time).' ['.$this->getLevelName($level).'] ['.$category.'] '.$message."\n"; } /** @@ -915,12 +915,12 @@ class TFirebugLogRoute extends TBrowserLogRoute if (typeof(console) == 'object') { console.log ("[Cumulated Time] [Time] [Level] [Category] [Message]"); - + EOD; return $string; } - + protected function renderMessage ($log, $info) { $logfunc = $this->getFirebugLoggingFunction($log[1]); @@ -934,7 +934,7 @@ EOD; return $string; } - + protected function renderFooter () { $string = << \ No newline at end of file -- cgit v1.2.3