summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/command/upgrade.php7
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);
}