From c398b0c78e4d0957eb32f3d4089f06c0790c635a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 14 Jan 2008 10:56:03 -0500 Subject: [PATCH] More useful timezone on "date" logvar. --- src/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.py b/src/log.py index e91db3c..4f50046 100644 --- a/src/log.py +++ b/src/log.py @@ -508,5 +508,5 @@ def add_run_info(mgr): mgr.set_variable("cmdline", " ".join(sys.argv)) from socket import gethostname mgr.set_variable("machine", gethostname()) - from time import gmtime, strftime - mgr.set_variable("date", strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())) + from time import localtime, strftime + mgr.set_variable("date", strftime("%a, %d %b %Y %H:%M:%S %Z", localtime())) -- GitLab