From: Michael Prager Date: Sun, 28 Feb 2010 14:27:17 +0000 (+0100) Subject: fixed display of 'tomorrow' text for events which are not in the same month X-Git-Url: https://code.delx.au/comingnext/commitdiff_plain/fea02bba692fc1a21bf9423f138e3bab3daf6498 fixed display of 'tomorrow' text for events which are not in the same month --- 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; }