exchangelib: event timezones getting simplified incorrectly
Hi,
I might be driving it wrong, but exchangelib is over-simplifying event timezones in a way that is causing breakage.
XML from server includes:
<t:StartTimeZone Name="(UTC+00:00) Dublin, Edinburgh, Lisbon, London" Id="GMT Standard Time">
but that appears in the python object as GMT:
>>> debugtest._start_timezone
<StaticTzInfo 'GMT'>
Whereas I actually need something like “Europe/London”. This is important because a recurring event that crosses a DST boundary is different if it’s “08:00 GMT” or “08:00 Europe/London”.
This is with python3 and exchangelib HEAD from October this year (ac4d84c20dcded85194e9a58d57552a76d745a9a)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Remove incorrect hard-coding of "GMT" for "GMT Standard Time" The hard-coding had the effect of picking the pytz timezone GMT for events in the MS timezone "GMT Standard Time", which is wrong - we ne... — committed to mcv21/exchangelib by mcv21 6 years ago
- Store the territory associated with each timezone mapping For each CLDR timezone, there is a territory; one entry corresponding to each Microsoft timezone is the default mapping, which is territory '... — committed to mcv21/exchangelib by mcv21 6 years ago
- Reflect changed structue of PYTZ_TO_MS_MAP The values in PYTZ_TO_MS_MAP are now tuples of (timezone name, territory); so the lookup code needs adjusting to take the first element of the tuple. Also ... — committed to mcv21/exchangelib by mcv21 6 years ago
- Store the territory associated with each timezone mapping For each CLDR timezone, there is a territory; one entry corresponding to each Microsoft timezone is the default mapping, which is territory '... — committed to mcv21/exchangelib by mcv21 6 years ago
- Reflect changed structue of PYTZ_TO_MS_MAP The values in PYTZ_TO_MS_MAP are now tuples of (timezone name, territory); so the lookup code needs adjusting to take the first element of the tuple. Also ... — committed to mcv21/exchangelib by mcv21 6 years ago
- Timezone map fixes (#521) * Remove incorrect hard-coding of "GMT" for "GMT Standard Time" The hard-coding had the effect of picking the pytz timezone GMT for events in the MS timezone "GMT Standa... — committed to ecederstrand/exchangelib by mcv21 6 years ago
…for reference, that gives you a map like this: