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:
parent
548fa6e57f
commit
8dd146d8fe
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user