ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [2/7] incubator-ponymail git commit: switch to using gmtime instead of localtime
Date Sun, 10 Jul 2016 11:09:18 GMT
switch to using gmtime instead of localtime

for consistent date strings, should the archiver's time zone
settings change.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/f6f453ef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/f6f453ef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/f6f453ef

Branch: refs/heads/master
Commit: f6f453efa6a2565d53519254068beb180b786511
Parents: 03fc55d
Author: humbedooh <humbedooh@apache.org>
Authored: Mon Jun 13 11:15:14 2016 +0200
Committer: humbedooh <humbedooh@apache.org>
Committed: Mon Jun 13 11:15:14 2016 +0200

----------------------------------------------------------------------
 tools/archiver.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/f6f453ef/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index e6e0d0a..36b9227 100644
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -271,7 +271,7 @@ class Archiver(object):
         elif not mdate:
             print("Date seems totally wrong, setting to _now_ instead.")
             mdate = time.gmtime()
-        mdatestring = time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(email.utils.mktime_tz(mdate)))
+        mdatestring = time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(email.utils.mktime_tz(mdate)))
         body = self.msgbody(msg)
         try:
             if 'content-type' in msg_metadata and msg_metadata['content-type'].find("flowed")
!= -1:


Mime
View raw message