From: Zac Medico Date: Sat, 9 Feb 2008 09:15:38 +0000 (-0000) Subject: Use local time for elog summaries (trunk r9273) X-Git-Tag: v2.1.4.4~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=86acaf2cc974a2154aac561ef5e4ada0dd2b9382;p=portage.git Use local time for elog summaries (trunk r9273) svn path=/main/branches/2.1.2/; revision=9303 --- diff --git a/pym/elog_modules/mod_mail_summary.py b/pym/elog_modules/mod_mail_summary.py index c89613131..339b4b827 100644 --- a/pym/elog_modules/mod_mail_summary.py +++ b/pym/elog_modules/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/elog_modules/mod_save_summary.py b/pym/elog_modules/mod_save_summary.py index 7dbfc03cc..6e6bec919 100644 --- a/pym/elog_modules/mod_save_summary.py +++ b/pym/elog_modules/mod_save_summary.py @@ -14,7 +14,7 @@ def process(mysettings, cpv, 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())), cpv)) + (os.getpid(), time.strftime("%Y-%m-%d %H:%M:%S %Z", time.localtime(time.time())), key)) elogfile.write(fulltext) elogfile.write("\n") elogfile.close()