]> code.delx.au - comingnext/blobdiff - comingNext/index.html
replaced 'tomorrow' fix by Klaus Hildebrandt (more stable code). Also fixed a problem...
[comingnext] / comingNext / index.html
index 5d7245ed313ff7335da6fe59c79c1cde616a27e7..b722479b1a2df497c520553d599e9dbb3595dec0 100644 (file)
@@ -63,7 +63,7 @@ var config = {
 // Nothing of interest from here on...\r
 //-------------------------------------------------------\r
 var panelNum = 0; // use 1 for second panel\r
-var version = "1.25";\r
+var version = "1.26";\r
 var versionURL = "http://comingnext.sourceforge.net/version.xml";\r
 var calendarService = null;\r
 var cacheEntriesHtml = [];\r
@@ -152,18 +152,18 @@ function error(message)
 \r
 function isToday(date)\r
 {\r
-       if (date.getDate() == now.getDate() && date.getMonth() == now.getMonth())\r
+       if (date.getFullYear() == now.getFullYear() && date.getMonth() == now.getMonth() && date.getDate() == now.getDate())\r
                return true;\r
        return false;\r
 }\r
 \r
 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
+       var tomorrow = new Date (now.getTime() + 24 * 60 * 60 * 1000);\r
+       if (date.getFullYear() == tomorrow.getFullYear() && date.getMonth() == tomorrow.getMonth() && date.getDate() == tomorrow.getDate())\r
                return true;\r
-       return false;\r
+       else\r
+               return false; \r
 }\r
 \r
 function collectLocales()\r
@@ -1042,6 +1042,7 @@ hr { color:#ffffff; background-color:#ffffff; height:1px; text-align:left; borde
                <p class="credits">Paul Moore (bug fixes, new features and code cleanup)</p>\r
                <p class="credits">Manfred Hanselmann (DST support)</p>\r
                <p class="credits">Christophe Milsent (translation support & french translation</p>\r
+               <p class="credits">Flavio Nathan (portuguese-brazilian translation</p>\r
        <p>This software is open source and licensed under the GPLv3.</p>\r
        <p>Visit sourceforge.net/projects/comingnext for free updates.</p>\r
        <hr />\r