update bauchbinde
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Florian Sorg 2020-12-28 18:11:30 +01:00
parent edb1b0d0e0
commit 39c8b5b54b
1 changed files with 1 additions and 1 deletions

View File

@ -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;