From fea02bba692fc1a21bf9423f138e3bab3daf6498 Mon Sep 17 00:00:00 2001 From: Michael Prager Date: Sun, 28 Feb 2010 15:27:17 +0100 Subject: [PATCH] fixed display of 'tomorrow' text for events which are not in the same month --- comingNext/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comingNext/index.html b/comingNext/index.html index 82abc58..90a29cc 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -160,8 +160,8 @@ function isToday(date) function isTomorrow(date) { if ((date.getDate() == now.getDate() + 1 && date.getMonth() == now.getMonth()) || - (date.getDate() == 0 && date.getMonth() == now.getMonth() + 1) || - (date.getDate() == 0 && date.getMonth() == now.getMonth() + 1 && date.getYear() == now.getYear() + 1)) + (date.getDate() == 1 && date.getMonth() == now.getMonth() + 1) || + (date.getDate() == 1 && date.getMonth() == 0 && now.getMonth() == 11 && date.getYear() == now.getYear() + 1)) return true; return false; } -- 2.39.2