1 |
Author: grobian |
2 |
Date: 2008-02-05 18:01:06 +0000 (Tue, 05 Feb 2008) |
3 |
New Revision: 9274 |
4 |
|
5 |
Modified: |
6 |
main/branches/prefix/pym/portage/elog/mod_mail_summary.py |
7 |
main/branches/prefix/pym/portage/elog/mod_save_summary.py |
8 |
Log: |
9 |
Merged from trunk 9272:9273 |
10 |
|
11 |
| 9273 | Use local time for elog summaries | |
12 |
| genone | | |
13 |
|
14 |
|
15 |
Modified: main/branches/prefix/pym/portage/elog/mod_mail_summary.py |
16 |
=================================================================== |
17 |
--- main/branches/prefix/pym/portage/elog/mod_mail_summary.py 2008-02-05 08:21:06 UTC (rev 9273) |
18 |
+++ main/branches/prefix/pym/portage/elog/mod_mail_summary.py 2008-02-05 18:01:06 UTC (rev 9274) |
19 |
@@ -12,7 +12,7 @@ |
20 |
def process(mysettings, key, logentries, fulltext): |
21 |
global _items |
22 |
header = ">>> Messages generated for package %s by process %d on %s:\n\n" % \ |
23 |
- (key, os.getpid(), time.strftime("%Y%m%d-%H%M%S", time.gmtime(time.time()))) |
24 |
+ (key, os.getpid(), time.strftime("%Y%m%d-%H%M%S %Z", time.localtime(time.time()))) |
25 |
config_root = mysettings["PORTAGE_CONFIGROOT"] |
26 |
mysettings, items = _items.setdefault(config_root, (mysettings, {})) |
27 |
items[key] = header + fulltext |
28 |
|
29 |
Modified: main/branches/prefix/pym/portage/elog/mod_save_summary.py |
30 |
=================================================================== |
31 |
--- main/branches/prefix/pym/portage/elog/mod_save_summary.py 2008-02-05 08:21:06 UTC (rev 9273) |
32 |
+++ main/branches/prefix/pym/portage/elog/mod_save_summary.py 2008-02-05 18:01:06 UTC (rev 9274) |
33 |
@@ -20,7 +20,7 @@ |
34 |
elogfile = open(elogfilename, "a") |
35 |
apply_permissions(elogfilename, mode=060, mask=0) |
36 |
elogfile.write(">>> Messages generated by process %d on %s for package %s:\n\n" % \ |
37 |
- (os.getpid(), time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(time.time())), key)) |
38 |
+ (os.getpid(), time.strftime("%Y-%m-%d %H:%M:%S %Z", time.localtime(time.time())), key)) |
39 |
elogfile.write(fulltext) |
40 |
elogfile.write("\n") |
41 |
elogfile.close() |
42 |
|
43 |
-- |
44 |
gentoo-commits@l.g.o mailing list |