summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Util/TLogRouter.php14
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 = <<<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