summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2008-02-05 08:21:06 +0000
committerMarius Mauch <genone@gentoo.org>2008-02-05 08:21:06 +0000
commit0b648b2a85b9133d01bb43bcbb9f9a9c1062b07f (patch)
tree6852e10310b29463dd6a7f2a0cbd16a8ea9ab7b2
parentdd176e22747ebeccfaf12b2764481395cd9ab1f4 (diff)
downloadportage-0b648b2a85b9133d01bb43bcbb9f9a9c1062b07f.tar.gz
portage-0b648b2a85b9133d01bb43bcbb9f9a9c1062b07f.tar.bz2
portage-0b648b2a85b9133d01bb43bcbb9f9a9c1062b07f.zip
Use local time for elog summaries
svn path=/main/trunk/; revision=9273
-rw-r--r--pym/portage/elog/mod_mail_summary.py2
-rw-r--r--pym/portage/elog/mod_save_summary.py2
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()