1
0

Convert back to UTC ASAP

This commit is contained in:
Jon Michael Aanes 2024-11-24 17:13:05 +01:00
parent 78a3b3b767
commit 086611909e
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -305,7 +305,7 @@ def parse_event_string(event_str: str, date: datetime.date, timezone: ZoneInfo)
logger.info('Could not parse format: %s', event_str)
return Event(None, None, None, None, event_str)
start = datetime.datetime.combine(date, start_time, timezone)
end = datetime.datetime.combine(date, end_time, timezone)
start = datetime.datetime.combine(date, start_time, timezone).astimezone(datetime.UTC)
end = datetime.datetime.combine(date, end_time, timezone).astimezone(datetime.UTC)
return Event(start, end, m.group(3), m.group(4), m.group(5))