diff --git a/obsidian_import/obsidian.py b/obsidian_import/obsidian.py index 9450ad6..0b765fa 100644 --- a/obsidian_import/obsidian.py +++ b/obsidian_import/obsidian.py @@ -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))