From 0b648b2a85b9133d01bb43bcbb9f9a9c1062b07f Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Tue, 5 Feb 2008 08:21:06 +0000 Subject: [PATCH] Use local time for elog summaries svn path=/main/trunk/; revision=9273 --- pym/portage/elog/mod_mail_summary.py | 2 +- pym/portage/elog/mod_save_summary.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/elog/mod_mail_summary.py b/pym/portage/elog/mod_mail_summary.py index 5b554a7bf..2e870fe5d 100644 --- a/pym/portage/elog/mod_mail_summary.py +++ b/pym/portage/elog/mod_mail_summary.py @@ -12,7 +12,7 @@ _items = {} def process(mysettings, key, logentries, fulltext): global _items header = ">>> Messages generated for package %s by process %d on %s:\n\n" % \ - (key, os.getpid(), time.strftime("%Y%m%d-%H%M%S", time.gmtime(time.time()))) + (key, os.getpid(), time.strftime("%Y%m%d-%H%M%S %Z", time.localtime(time.time()))) config_root = mysettings["PORTAGE_CONFIGROOT"] mysettings, items = _items.setdefault(config_root, (mysettings, {})) items[key] = header + fulltext diff --git a/pym/portage/elog/mod_save_summary.py b/pym/portage/elog/mod_save_summary.py index ee40731df..3a062dd12 100644 --- a/pym/portage/elog/mod_save_summary.py +++ b/pym/portage/elog/mod_save_summary.py @@ -19,7 +19,7 @@ def process(mysettings, key, logentries, fulltext): elogfile = open(elogfilename, "a") apply_permissions(elogfilename, mode=060, mask=0) elogfile.write(">>> Messages generated by process %d on %s for package %s:\n\n" % \ - (os.getpid(), time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(time.time())), key)) + (os.getpid(), time.strftime("%Y-%m-%d %H:%M:%S %Z", time.localtime(time.time())), key)) elogfile.write(fulltext) elogfile.write("\n") elogfile.close() -- 2.26.2