From 39c8b5b54bb5fd096039a1e354e7237e22dc6ec8 Mon Sep 17 00:00:00 2001 From: Florian Sorg Date: Mon, 28 Dec 2020 18:11:30 +0100 Subject: [PATCH] update bauchbinde --- static/bauchbinde/assets/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/bauchbinde/assets/script.js b/static/bauchbinde/assets/script.js index 7d66ca6..bf9889b 100644 --- a/static/bauchbinde/assets/script.js +++ b/static/bauchbinde/assets/script.js @@ -42,7 +42,7 @@ const talk = room.find(talk => { const start = Date.parse(talk.date); - const [hours, minutes] = talk.duration.split(':'); + const [hours, minutes] = talk.duration.split(':').map(s => parseInt(s.trim(), 10)); const duration = (hours * 60 + minutes) * 60 * 1000; const end = start + duration; return now >= start && now <= end;