Permalink
Browse files

Currently, the time format does not allow differentiate the AM/PM hou…

…rs since the format choosen is 12h and no AM/PM label is added to each log line. So, my suggestion is to convert to 24h format (using a H instead of h) to fix this issue.


More details, see PHP date function doc - http://php.net/manual/en/function.date.php
  • Loading branch information...
1 parent 2ccda56 commit 889bcf74c050a4bbfc8ea49d235e9c4d895532e3 @joaosantos81 joaosantos81 committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 dev/LogErrorFileFormatter.php
@@ -35,7 +35,7 @@ public function format($event) {
$urlSuffix = " (http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI])";
}
- return '[' . date('d-M-Y h:i:s') . "] $errtype at $relfile line $errline: $errstr$urlSuffix" . PHP_EOL;
+ return '[' . date('d-M-Y H:i:s') . "] $errtype at $relfile line $errline: $errstr$urlSuffix" . PHP_EOL;
}
}

0 comments on commit 889bcf7

Please sign in to comment.