Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/modules/calendar/endpoints_calendar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import uuid
from datetime import UTC, datetime
from zoneinfo import ZoneInfo

from fastapi import Depends, HTTPException
from fastapi.responses import FileResponse
Expand Down Expand Up @@ -379,7 +380,7 @@ async def add_event(
)
if event.notification:
ticket_date = (
f", SG le {ticket_url_opening.strftime('%d/%m/%Y Γ  %H:%M')}"
f", SG le {ticket_url_opening.astimezone(ZoneInfo('Europe/Paris')).strftime('%d/%m/%Y Γ  %H:%M')}"
if ticket_url_opening
else ""
)
Expand Down Expand Up @@ -591,7 +592,7 @@ async def confirm_event(
if association is None:
raise HTTPException(status_code=404, detail="Association not found")
ticket_date = (
f", SG le {event.ticket_url_opening.strftime('%d/%m/%Y Γ  %H:%M')}"
f", SG le {event.ticket_url_opening.astimezone(ZoneInfo('Europe/Paris')).strftime('%d/%m/%Y Γ  %H:%M')}"
if event.ticket_url_opening
else ""
)
Expand Down
Loading