summaryrefslogtreecommitdiffstats
path: root/pym/elog_modules
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-02-09 09:15:38 +0000
committerZac Medico <zmedico@gentoo.org>2008-02-09 09:15:38 +0000
commit86acaf2cc974a2154aac561ef5e4ada0dd2b9382 (patch)
tree5fc43482a5871985fc10a3a11c62f600d45c5d68 /pym/elog_modules
parenta2e061425e9c402eb9f0101f17ce78c397f2efef (diff)
downloadportage-86acaf2cc974a2154aac561ef5e4ada0dd2b9382.tar.gz
portage-86acaf2cc974a2154aac561ef5e4ada0dd2b9382.tar.bz2
portage-86acaf2cc974a2154aac561ef5e4ada0dd2b9382.zip
Use local time for elog summaries (trunk r9273)
svn path=/main/branches/2.1.2/; revision=9303
Diffstat (limited to 'pym/elog_modules')
-rw-r--r--pym/elog_modules/mod_mail_summary.py2
-rw-r--r--pym/elog_modules/mod_save_summary.py2
2 files changed, 2 insertions, 2 deletions
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()