feat: timezone-aware schedule with browser tz and JST client conversion

This commit is contained in:
2026-06-05 15:42:23 +02:00
committed by Milas Holsting
parent 7ebfe4807b
commit c13895b7cd
6 changed files with 255 additions and 48 deletions

View File

@@ -7,7 +7,12 @@
</div>
</section>
<div hx-get="/api/schedule?year={{.ScheduleYear}}&week={{.ScheduleWeek}}" hx-trigger="load" hx-swap="outerHTML">
<div
hx-get="/api/schedule?year={{.ScheduleYear}}&week={{.ScheduleWeek}}"
hx-vals='js:{timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC"}'
hx-trigger="load"
hx-swap="outerHTML"
>
{{template "schedule_skeleton"}}
</div>
</div>