Skip to content
Snippets Groups Projects
Commit c1e5725d authored by Björn Schießle's avatar Björn Schießle
Browse files

changed default time format to ISO8601

parent 3cf4c46c
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ class OC_Log_Owncloud { ...@@ -50,7 +50,7 @@ class OC_Log_Owncloud {
$minLevel=min(OC_Config::getValue( "loglevel", OC_Log::WARN ), OC_Log::ERROR); $minLevel=min(OC_Config::getValue( "loglevel", OC_Log::WARN ), OC_Log::ERROR);
if($level>=$minLevel) { if($level>=$minLevel) {
// default to ISO8601 // default to ISO8601
$format = OC_Config::getValue('logdateformat', 'Y-m-d H:i:s'); $format = OC_Config::getValue('logdateformat', 'c');
$logtimezone=OC_Config::getValue( "logtimezone", 'UTC' ); $logtimezone=OC_Config::getValue( "logtimezone", 'UTC' );
try { try {
$timezone = new DateTimeZone($logtimezone); $timezone = new DateTimeZone($logtimezone);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment