From cf9c9c1f6f2190560fef5cbf147394747d6de53b Mon Sep 17 00:00:00 2001 From: dorian Date: Sun, 1 Jul 2018 10:25:06 +0200 Subject: [PATCH] fehler behoben --- qml/FoodPlanForm.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/FoodPlanForm.qml b/qml/FoodPlanForm.qml index 22cfab2..0e9e660 100644 --- a/qml/FoodPlanForm.qml +++ b/qml/FoodPlanForm.qml @@ -196,7 +196,7 @@ Page { if(date.getDate() === today.getDate()){ return("Heute") } - else if(date.getDate() === today.getDate() + 1 || (date.getDay() === 1 && today.getMonth() === date.getMonth() + 1)){ + else if(date.getDate() === today.getDate() + 1 || (date.getDate() === 1 && date.getMonth() === today.getMonth() + 1)){ return("Morgen") } else { @@ -206,7 +206,7 @@ Page { } function isDayVisible(index){ var date = _cppServerConn.getFoodPlanData(index).date - return( date.getDate() >= today.getDate() || date.getMonth() > today.getMonth()) + return( date.getDate() >= today.getDate() && date.getMonth() >= today.getMonth()) } } }