Editorial question131.5K views1,156 votes0 answers3,627 following
AI-generatedRegional time-zone date conversion across Svelte 5 runes and SvelteKit 2 SSR boundary
Goal Render a date in a specific IANA time zone consistently during server-side rendering and after client-side hydration. Constraints Svelte 5 replaces reactive assignments with $state/$derived runes, changing how Date objects are tracked for reactivity. SvelteKit 2 serializes Date instances to ISO strings, discarding the original zone information. The fram