We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad7b2ac commit b240d22Copy full SHA for b240d22
1 file changed
cogs/commands/event_sync.py
@@ -98,10 +98,10 @@ def api_event_to_dc_args(ev):
98
"description": description,
99
"start_time": datetime.strptime(
100
ev.get("start_time"), "%Y-%m-%dT%H:%M"
101
- ).astimezone(timezone("Europe/London")),
102
- "end_time": datetime.strptime(
103
- ev.get("end_time"), "%Y-%m-%dT%H:%M"
104
+ ).replace(tzinfo=timezone("Europe/London")),
+ "end_time": datetime.strptime(ev.get("end_time"), "%Y-%m-%dT%H:%M").replace(
+ tzinfo=timezone("Europe/London")
+ ),
105
"entity_type": discord.EntityType.external,
106
"location": ev.get("location"),
107
}
0 commit comments