folder/IMAP: fix datetuple dst check

Signed-off-by: Michael Hoy <mjh@mjhoy.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Michael Hoy 2015-04-08 14:51:46 -04:00 committed by Nicolas Sebrecht
parent 548fa6e57f
commit 8dd146d8fe

View File

@ -489,7 +489,7 @@ class IMAPFolder(BaseFolder):
# tm_isdst coming from email.parsedate is not usable, we still use it # tm_isdst coming from email.parsedate is not usable, we still use it
# here, mhh. # here, mhh.
if datetuple.tm_isdst == '1': if datetuple.tm_isdst == 1:
zone = -time.altzone zone = -time.altzone
else: else:
zone = -time.timezone zone = -time.timezone