update bauchbinde
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
edb1b0d0e0
commit
39c8b5b54b
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
const talk = room.find(talk => {
|
const talk = room.find(talk => {
|
||||||
const start = Date.parse(talk.date);
|
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 duration = (hours * 60 + minutes) * 60 * 1000;
|
||||||
const end = start + duration;
|
const end = start + duration;
|
||||||
return now >= start && now <= end;
|
return now >= start && now <= end;
|
||||||
|
|
Loading…
Reference in New Issue