Use local time for elog summaries (trunk r9273)
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Feb 2008 09:15:38 +0000 (09:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Feb 2008 09:15:38 +0000 (09:15 -0000)
svn path=/main/branches/2.1.2/; revision=9303

pym/elog_modules/mod_mail_summary.py
pym/elog_modules/mod_save_summary.py

index c89613131b0308e59951e177520d6b6d21d6f5f0..339b4b827ac715a47b92172e2f7bdbf7464a7a29 100644 (file)
@@ -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
index 7dbfc03cceb8ebfd3833d3e6b853af23e221b742..6e6bec919b9ca11e68b471652fa3fd8d4787e087 100644 (file)
@@ -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()