Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

(Fixes issue 1376)

  • Loading branch information...
commit 0bc1b4e9513a1fdafe4c1e11b5aa5bac775d9a0e 1 parent 61fd8e1
qiang.xue authored
Showing with 46 additions and 44 deletions.
  1. +2 −0  CHANGELOG
  2. +1 −1  framework/views/bg/log-firebug.php
  3. +1 −1  framework/views/bg/log.php
  4. +1 −1  framework/views/de/log-firebug.php
  5. +1 −1  framework/views/de/log.php
  6. +1 −1  framework/views/el/log-firebug.php
  7. +1 −1  framework/views/el/log.php
  8. +1 −1  framework/views/es/log-firebug.php
  9. +1 −1  framework/views/es/log.php
  10. +1 −1  framework/views/fr/log-firebug.php
  11. +1 −1  framework/views/fr/log.php
  12. +1 −1  framework/views/he/log-firebug.php
  13. +1 −1  framework/views/he/log.php
  14. +1 −1  framework/views/id/log-firebug.php
  15. +1 −1  framework/views/id/log.php
  16. +1 −1  framework/views/it/log-firebug.php
  17. +1 −1  framework/views/it/log.php
  18. +1 −1  framework/views/ja/log-firebug.php
  19. +1 −1  framework/views/ja/log.php
  20. +1 −1  framework/views/log-firebug.php
  21. +1 −1  framework/views/log.php
  22. +1 −1  framework/views/lv/log-firebug.php
  23. +1 −1  framework/views/lv/log.php
  24. +1 −1  framework/views/nl/log-firebug.php
  25. +1 −1  framework/views/nl/log.php
  26. +1 −1  framework/views/no/log-firebug.php
  27. +1 −1  framework/views/no/log.php
  28. +1 −1  framework/views/pl/log-firebug.php
  29. +1 −1  framework/views/pl/log.php
  30. +1 −1  framework/views/pt/log-firebug.php
  31. +1 −1  framework/views/pt/log.php
  32. +1 −1  framework/views/ro/log-firebug.php
  33. +1 −1  framework/views/ro/log.php
  34. +1 −1  framework/views/ru/log-firebug.php
  35. +1 −1  framework/views/ru/log.php
  36. +1 −1  framework/views/sv/log-firebug.php
  37. +1 −1  framework/views/sv/log.php
  38. +1 −1  framework/views/uk/log-firebug.php
  39. +1 −1  framework/views/uk/log.php
  40. +1 −1  framework/views/vi/log-firebug.php
  41. +1 −1  framework/views/vi/log.php
  42. +1 −1  framework/views/zh_cn/log-firebug.php
  43. +1 −1  framework/views/zh_cn/log.php
  44. +1 −1  framework/views/zh_tw/log-firebug.php
  45. +1 −1  framework/views/zh_tw/log.php
View
2  CHANGELOG
@@ -4,8 +4,10 @@
Version 1.1.4 to be released
----------------------------
+- Bug #1376: Fixed the bug that the timestamps displayed in Web application log may not be formatted properly (Qiang)
- Bug #1377: Fixed the bug that CStarRating did not work when not setting the model property (Qiang)
+
Version 1.1.3 July 4, 2010
--------------------------
- Bug #856: Logout doesn't work when CWebUser::identityCookie is configured and allowAutoLogin is set true (Qiang)
View
2  framework/views/bg/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/bg/log.php
@@ -16,7 +16,7 @@
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/de/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/de/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/el/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/el/log.php
@@ -16,7 +16,7 @@
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/es/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/es/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/fr/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/fr/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/he/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/he/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/id/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/id/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/it/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/it/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/ja/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/ja/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/lv/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/lv/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/nl/log-firebug.php
@@ -4,7 +4,7 @@
console.group("Applicatie Logboek");
<?php
foreach($data as $index=>$log) {
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/nl/log.php
@@ -22,7 +22,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/no/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/no/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/pl/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/pl/log.php
@@ -25,7 +25,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/pt/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/pt/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/ro/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/ro/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/ru/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/ru/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/sv/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/sv/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/uk/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/uk/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/vi/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/vi/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/zh_cn/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/zh_cn/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
View
2  framework/views/zh_tw/log-firebug.php
@@ -6,7 +6,7 @@
<?php
foreach($data as $index=>$log)
{
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
+ $time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
else if($log[1]===CLogger::LEVEL_ERROR)
View
2  framework/views/zh_tw/log.php
@@ -24,7 +24,7 @@
if(isset($colors[$log[1]]))
$color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>';
- $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000);
+ $time=date('H:i:s.',$log[3]).sprintf('%06d',(int)(($log[3]-(int)$log[3])*1000000));
echo <<<EOD
<tr style="background:{$color}">
Please sign in to comment.
Something went wrong with that request. Please try again.