show no talks for tomorrow

This commit is contained in:
Rob 2019-09-22 11:18:37 +02:00
parent 3b61260084
commit 521ace7a21
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ class Schedule {
this.schedule.find('event').each( function(){
var eventStart = new Date($(this).children('date').text());
if ((eventStart - now) >= 0){
var tenHours = 36000000;
if ((eventStart - now) >= 0 && (eventStart - now) < tenHours){
allEvents.push({
title: $(this).children('title').text(),
room: $(this).children('room').text(),