From 2c5ae040f791131c85834eab209c930ac0310e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 8 Mar 2022 00:45:04 +0100 Subject: Popup created events now don't take seconds. --- static/globals.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'static/globals.ts') diff --git a/static/globals.ts b/static/globals.ts index eb7488c0..2fc12933 100644 --- a/static/globals.ts +++ b/static/globals.ts @@ -30,6 +30,8 @@ window.addNewEvent = () => { let ev = new VEvent(); let uid = uuid() let now = new Date() + /* Round seconds to 0, since time inputs wants exact seconds */ + now.setUTCSeconds(0); ev.setProperties([ ['uid', uid], ['dtstart', now, 'date-time'], -- cgit v1.2.3