mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
2ccda564ca
commit
889bcf74c0
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user