mirror of
https://github.com/OfflineIMAP/offlineimap.git
synced 2024-06-29 07:50:51 +02:00
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
|
||||
# here, mhh.
|
||||
if datetuple.tm_isdst == '1':
|
||||
if datetuple.tm_isdst == 1:
|
||||
zone = -time.altzone
|
||||
else:
|
||||
zone = -time.timezone
|
||||
|
|
Loading…
Reference in New Issue
Block a user