diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-23 15:07:07 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-24 09:24:28 +0200 |
commit | d8b9f6ac2338e25d9560174ae4be98b6adf19819 (patch) | |
tree | b09af0e03eb7ea347a0324ce4dc057fcef9a7c2b /core | |
parent | 0137a3c5e021a4d059b31843308f3d1ffbf8795a (diff) | |
download | nextcloud-server-d8b9f6ac2338e25d9560174ae4be98b6adf19819.tar.gz nextcloud-server-d8b9f6ac2338e25d9560174ae4be98b6adf19819.zip |
Use logtimezone and logdateformat
Diffstat (limited to 'core')
-rw-r--r-- | core/command/upgrade.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index de65d6176e8..8bdcd3fd6c2 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -232,8 +232,11 @@ class Upgrade extends Command { protected function writeln(OutputInterface $output, $line) { $t = ''; if($this->showTimestamp) { - $time = new \DateTime(); - $t = $time->format(\DateTime::ISO8601) . ' '; + $timeZone = $this->config->getSystemValue('logtimezone', null); + $timeZone = $timeZone !== null ? new \DateTimeZone($timeZone) : null; + + $time = new \DateTime('now', $timeZone); + $t = $time->format($this->config->getSystemValue('logdateformat', 'c')) . ' '; } $output->writeln($t . $line); } |