summaryrefslogtreecommitdiffstats
path: root/lib/private/Console
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-01-30 15:06:23 +0100
committerJoas Schilling <coding@schilljs.com>2017-01-30 15:06:23 +0100
commit0a837ac64eae0a20449d4c00ed07500903728de3 (patch)
tree908b907250622a7ee2daacc8f19a380d16e84540 /lib/private/Console
parent64e9a1aec09bd24fe411e75df710b99dcb67bc86 (diff)
downloadnextcloud-server-0a837ac64eae0a20449d4c00ed07500903728de3.tar.gz
nextcloud-server-0a837ac64eae0a20449d4c00ed07500903728de3.zip
Revert unintentional log timestamp format change
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Console')
-rw-r--r--lib/private/Console/TimestampFormatter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php
index d68db95f645..66dd38e6ac3 100644
--- a/lib/private/Console/TimestampFormatter.php
+++ b/lib/private/Console/TimestampFormatter.php
@@ -97,11 +97,11 @@ class TimestampFormatter implements OutputFormatterInterface {
*/
public function format($message) {
- $timeZone = $this->config->getSystemValue('logtimezone', null);
+ $timeZone = $this->config->getSystemValue('logtimezone', 'UTC');
$timeZone = $timeZone !== null ? new \DateTimeZone($timeZone) : null;
$time = new \DateTime('now', $timeZone);
- $timestampInfo = $time->format($this->config->getSystemValue('logdateformat', \DateTime::ISO8601));
+ $timestampInfo = $time->format($this->config->getSystemValue('logdateformat', \DateTime::ATOM));
return $timestampInfo . ' ' . $this->formatter->format($message);
}