Show dates, times and prices in a European format and the studio's timezone

Formatting with the default locale rendered US dates (MM/DD/YYYY, 12-hour)
on the server. Everything shown to people now uses DISPLAY_LOCALE (en-GB)
and booking times use SITE_TIMEZONE. The public layout reloads on every
navigation so places left are never stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VaXE9U7AmW3dfD2w6cbLfk
This commit is contained in:
agent 2026-10-24 09:32:56 +00:00
parent 7075ab7883
commit 214db95186
5 changed files with 47 additions and 21 deletions

View file

@ -3,6 +3,7 @@
import { page } from '$app/state';
import type { HeaderGlobal } from '$lib/types';
import { getBasketContext } from '$lib/basket.svelte';
import { formatPrice } from '$shared/calendar';
let { header } = $props<{ header: HeaderGlobal }>();
@ -29,9 +30,7 @@
return href === '/' ? path === '/' : path === href || path.startsWith(href + '/');
}
function formatTotal(amount: number) {
return new Intl.NumberFormat(undefined, { style: 'currency', currency: 'EUR' }).format(amount);
}
const formatTotal = formatPrice;
</script>
{#snippet basketIcon()}