From 8dd146d8fe9a5e8409a5bec5a983b7e920df8b2a Mon Sep 17 00:00:00 2001 From: Michael Hoy Date: Wed, 8 Apr 2015 14:51:46 -0400 Subject: [PATCH] folder/IMAP: fix datetuple dst check Signed-off-by: Michael Hoy Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/IMAP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 253ac97..9ed7fec 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -489,7 +489,7 @@ class IMAPFolder(BaseFolder): # tm_isdst coming from email.parsedate is not usable, we still use it # here, mhh. - if datetuple.tm_isdst == '1': + if datetuple.tm_isdst == 1: zone = -time.altzone else: zone = -time.timezone