summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2014-06-15 15:12:50 +0100
committerSam Thursfield <sam@afuera.me.uk>2014-08-29 15:17:02 +0000
commit0126e0ee753307142e7ec7074cd39c6ebbe2aa93 (patch)
treedf4b64b682b425a27d3e548cdf52b6bb6f26542b
parentaf832348f8f494fdcbb5a28238c79b8e954a221d (diff)
downloadmorph-sam/wip.tar.gz
Show status messages in local timesam/wip
This is consistent with the timestamps in log files. Previously, running `morph --log=/dev/stdout' mixed local time with UTC, confusingly. It was jarring to have status output on screen which didn't match the time zone of the computer on which it was running, too.
-rw-r--r--morphlib/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/app.py b/morphlib/app.py
index 33393478..76c68720 100644
--- a/morphlib/app.py
+++ b/morphlib/app.py
@@ -476,7 +476,7 @@ class Morph(cliapp.Application):
ok = verbose or error or (not quiet and not chatty)
if ok:
- timestamp = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime())
+ timestamp = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
self.output.write('%s %s\n' % (timestamp, text))
self.output.flush()