From 889bcf74c050a4bbfc8ea49d235e9c4d895532e3 Mon Sep 17 00:00:00 2001 From: joaosantos81 Date: Thu, 29 Dec 2011 16:17:14 +0000 Subject: [PATCH] Currently, the time format does not allow differentiate the AM/PM hours 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 --- dev/LogErrorFileFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/LogErrorFileFormatter.php b/dev/LogErrorFileFormatter.php index c2dfb01cd..5a6fb9900 100644 --- a/dev/LogErrorFileFormatter.php +++ b/dev/LogErrorFileFormatter.php @@ -35,7 +35,7 @@ class SS_LogErrorFileFormatter implements Zend_Log_Formatter_Interface { $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; } } \ No newline at end of file