Skip to content

Commit f1248fc

Browse files
author
Alejandro Casanovas
committed
WIN_TO_IANA converter now forced to convert WINDOWS 'UTC' to IANA 'UTC'
1 parent cf77d3f commit f1248fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

O365/utils/windows_tz.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@
602602
"Zulu": "UTC"
603603
}
604604

605-
WIN_TO_IANA = {v: k for k, v in IANA_TO_WIN.items()}
605+
# when converting to Iana, only consider for win UTC the value Iana UTC
606+
WIN_TO_IANA = {v: k for k, v in IANA_TO_WIN.items() if v != 'UTC' or (v == 'UTC' and k == 'UTC')}
606607

607608

608609
def get_iana_tz(windows_tz):

0 commit comments

Comments
 (0)