diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-01-19 20:08:15 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-01-19 20:08:15 -0600 |
commit | 231608325691be8e9e9f046897c12982da3c4eb3 (patch) | |
tree | 110232b286ea05b4adce9041c6bb9d0cb2cfa263 /lib/private/Log/File.php | |
parent | 48a3f2a8a2d6217c9938c3719fb752633de7c082 (diff) | |
download | nextcloud-server-231608325691be8e9e9f046897c12982da3c4eb3.tar.gz nextcloud-server-231608325691be8e9e9f046897c12982da3c4eb3.zip |
fix default value for logdateformat - fixes #3107
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Log/File.php')
-rw-r--r-- | lib/private/Log/File.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php index 904aa1d93f1..d41ab83c804 100644 --- a/lib/private/Log/File.php +++ b/lib/private/Log/File.php @@ -75,8 +75,8 @@ class File { $config = \OC::$server->getSystemConfig(); // default to ISO8601 - $format = $config->getValue('logdateformat', 'c'); - $logTimeZone = $config->getValue( "logtimezone", 'UTC' ); + $format = $config->getValue('logdateformat', \DateTime::ISO8601); + $logTimeZone = $config->getValue('logtimezone', 'UTC'); try { $timezone = new \DateTimeZone($logTimeZone); } catch (\Exception $e) { |