// 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
\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
<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