Convert back to UTC ASAP
This commit is contained in:
parent
78a3b3b767
commit
086611909e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user