From e96766476973a302cac20bc444231cdfd21e9e3d Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 7 Mar 2022 11:41:32 +0100 Subject: [PATCH] Start the view to now --- src/App.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 7253d1e..98e8b8d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -22,6 +22,7 @@ let openModal = false; const toggle = () => (openModal = !openModal); const mobile = window.innerWidth < 765; + const now = new Date(); let calendar; @@ -47,7 +48,8 @@ height: '100%', schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives', nowIndicator: true, - now: new Date(), + now: now, + scrollTime: now.toLocaleTimeString(), eventClick: info => { openModal = true; event.set(info.event);