diff --git a/panels/mensaPlan/script.js b/panels/mensaPlan/script.js index f6f81d93d74d640dbbc7d68efe539670b49052c3..4afc27d637c387e851ab74a0c7d7ae6038c65af5 100755 --- a/panels/mensaPlan/script.js +++ b/panels/mensaPlan/script.js @@ -28,7 +28,6 @@ this.show = function() { active : currentTab }); }, this.tabtime*1000); - } this.hide = function() { @@ -47,6 +46,7 @@ function isNextDay() { if (new Date().getHours() >= 15) { return true; } + return false; } function calcDateAPI() { diff --git a/panels/werbung/script.js b/panels/werbung/script.js index 6f1beed5777be112c7829f512750be4408331ea1..78cc7fcbeace7c044910b4614732345366d98703 100755 --- a/panels/werbung/script.js +++ b/panels/werbung/script.js @@ -32,9 +32,8 @@ this.hide = function() { function isOverDate(day, month, year){ console.log("DEBUG: input"+day +" "+ month+" "+year); - var d = new Date(); - if((d.getFullYear() > year) || (d.getFullYear() == year && d.getMonth() > month) || (d.getFullYear() == year && d.getMonth() == month && d.getDate() > day)){ + if((d.getFullYear() > year) || (d.getFullYear() == year && d.getMonth() > month) || (d.getFullYear() == year && d.getMonth()+1 == month && d.getDate() > day)){ return true; } else { return false;