From 0126e0ee753307142e7ec7074cd39c6ebbe2aa93 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Sun, 15 Jun 2014 15:12:50 +0100 Subject: Show status messages in local time 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. --- morphlib/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.1