]> code.delx.au - comingnext/commitdiff
fixed display of 'tomorrow' text for events which are not in the same month
authorMichael Prager <michael@pragers.de>
Sun, 28 Feb 2010 14:27:17 +0000 (15:27 +0100)
committerMichael Prager <michael@pragers.de>
Sun, 28 Feb 2010 14:27:17 +0000 (15:27 +0100)
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