Skip to content

Commit

Permalink
(Fixes issue 1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiang.xue committed Jul 8, 2010
1 parent 61fd8e1 commit 0bc1b4e
Show file tree
Hide file tree
Showing 45 changed files with 46 additions and 44 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Expand Up @@ -4,8 +4,10 @@


Version 1.1.4 to be released 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) - Bug #1377: Fixed the bug that CStarRating did not work when not setting the model property (Qiang)



Version 1.1.3 July 4, 2010 Version 1.1.3 July 4, 2010
-------------------------- --------------------------
- Bug #856: Logout doesn't work when CWebUser::identityCookie is configured and allowAutoLogin is set true (Qiang) - Bug #856: Logout doesn't work when CWebUser::identityCookie is configured and allowAutoLogin is set true (Qiang)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/bg/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/bg/log.php
Expand Up @@ -16,7 +16,7 @@
{ {
$color=($index%2)?'#F5F5F5':'#EBF8FE'; $color=($index%2)?'#F5F5F5':'#EBF8FE';
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/de/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/de/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/el/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/el/log.php
Expand Up @@ -16,7 +16,7 @@
{ {
$color=($index%2)?'#F5F5F5':'#EBF8FE'; $color=($index%2)?'#F5F5F5':'#EBF8FE';
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/es/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/es/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/fr/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/fr/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/he/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/he/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/id/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/id/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/it/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/it/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/ja/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/ja/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/lv/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/lv/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/nl/log-firebug.php
Expand Up @@ -4,7 +4,7 @@
console.group("Applicatie Logboek"); console.group("Applicatie Logboek");
<?php <?php
foreach($data as $index=>$log) { 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/nl/log.php
Expand Up @@ -22,7 +22,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/no/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/no/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/pl/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/pl/log.php
Expand Up @@ -25,7 +25,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/pt/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/pt/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/ro/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/ro/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/ru/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/ru/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/sv/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/sv/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/uk/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/uk/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/vi/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/vi/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/zh_cn/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion framework/views/zh_cn/log.php
Expand Up @@ -24,7 +24,7 @@
if(isset($colors[$log[1]])) if(isset($colors[$log[1]]))
$color=$colors[$log[1]]; $color=$colors[$log[1]];
$message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; $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 echo <<<EOD
<tr style="background:{$color}"> <tr style="background:{$color}">
Expand Down
2 changes: 1 addition & 1 deletion framework/views/zh_tw/log-firebug.php
Expand Up @@ -6,7 +6,7 @@
<?php <?php
foreach($data as $index=>$log) 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) if($log[1]===CLogger::LEVEL_WARNING)
$func='warn'; $func='warn';
else if($log[1]===CLogger::LEVEL_ERROR) else if($log[1]===CLogger::LEVEL_ERROR)
Expand Down

0 comments on commit 0bc1b4e

Please sign in to comment.