diff options
author | xue <> | 2008-03-24 20:39:47 +0000 |
---|---|---|
committer | xue <> | 2008-03-24 20:39:47 +0000 |
commit | 8c5d1e640a220a138294575c5770c7e9da0d46a3 (patch) | |
tree | 974de4183944a7c53ff75ab16ba509656679cbd3 | |
parent | e19ac3ebece43a1e2b7d2c3aa1df1e311da8c7c9 (diff) |
fixed #819
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Util/TLogRouter.php | 14 |
2 files changed, 8 insertions, 7 deletions
@@ -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 = <<<EOD @@ -946,10 +946,10 @@ EOD; return $string; } - + protected function getFirebugLoggingFunction($level) { - switch ($level) + switch ($level) { case TLogger::DEBUG: case TLogger::INFO: @@ -964,6 +964,6 @@ EOD; } return 'console.log'; } - + }
?>
\ No newline at end of file |