ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Show bad date
Date Fri, 18 Nov 2016 22:39:14 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 7929acc11 -> 287f7e18c


Show bad date

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

Branch: refs/heads/master
Commit: 287f7e18cd0ec42868251607b1ba2082db40cb75
Parents: 7929acc
Author: Sebb <sebb@apache.org>
Authored: Fri Nov 18 16:46:40 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Fri Nov 18 16:46:40 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/287f7e18/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index 76be895..f0521c8 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -271,7 +271,7 @@ class Archiver(object):
         if not mdate and msg_metadata.get('archived-at'):
             mdate = email.utils.parsedate_tz(msg_metadata.get('archived-at'))
         elif not mdate:
-            print("Date seems totally wrong, setting to _now_ instead.")
+            print("Date (%s) seems totally wrong, setting to _now_ instead." % mdate)
             mdate = time.gmtime() # Get a standard 9-tuple
             mdate = mdate + (0, ) # Fake a TZ (10th element)
         mdatestring = time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(email.utils.mktime_tz(mdate)))


Mime
View raw message