]> code.delx.au - comingnext/blobdiff - comingNext/index.html
fixed display of 'tomorrow' text for events which are not in the same month
[comingnext] / comingNext / index.html
index 82abc58ade3ca6a7c812d5d0ed46ffb8f7709832..90a29ccc60f23610cda61e058dbe46005aabe85a 100644 (file)
@@ -160,8 +160,8 @@ function isToday(date)
 function isTomorrow(date)\r
 {\r
        if ((date.getDate() == now.getDate() + 1 && date.getMonth() == now.getMonth()) ||\r
-           (date.getDate() == 0 && date.getMonth() == now.getMonth() + 1) ||\r
-           (date.getDate() == 0 && date.getMonth() == now.getMonth() + 1 && date.getYear() == now.getYear() + 1))\r
+           (date.getDate() == 1 && date.getMonth() == now.getMonth() + 1) ||\r
+           (date.getDate() == 1 && date.getMonth() == 0 && now.getMonth() == 11 && date.getYear() == now.getYear() + 1))\r
                return true;\r
        return false;\r
 }\r