// Nothing of interest from here on...\r
//-------------------------------------------------------\r
var panelNum = 0; // use 1 for second panel\r
-var version = "1.35";\r
+var version = "1.37";\r
var versionURL = "http://comingnext.sourceforge.net/version.xml";\r
var calendarService = null;\r
var cacheEntriesHtml = [];\r
}\r
}\r
\r
+function stringEndsWith(str, suffix)\r
+{\r
+ return str.indexOf(suffix, str.length - suffix.length) !== -1;\r
+}\r
+\r
// detects the system's current time format by parsing a native calendar timestamp (this is the only reliable formating across all devices and firmwares)\r
function detectTimeFormat(localeTimeString)\r
{\r
localeTimeString = localeTimeString.toLowerCase();\r
- use12hoursTimeFormat = localeTimeString.indexOf("am") != -1 || localeTimeString.indexOf("pm") != -1 ? true : false;\r
+ use12hoursTimeFormat = stringEndsWith(localeTimeString, "am") || stringEndsWith(localeTimeString, "pm");\r
timeFormatSeparator = localeTimeString.indexOf(":") != -1 ? ":" : ".";\r
}\r
\r
<p class="credits">Tokeda (russian translation)</p>\r
<p class="credits">Marcella Ferrari (italian translation)</p>\r
<p class="credits">Venos (italian translation)</p>\r
+ <p class="credits">Francisco Rodero (catalan translation)</p>\r
+ <p class="credits">zbigzbig20 (polish translation)</p>\r
<p>This software is open source and licensed under the GPLv3.</p>\r
<p>Visit <a onclick="widget.openURL('http://comingnext.sf.net/'); return false;" href="http://comingnext.sf.net/">comingnext.sf.net</a> for free updates.</p>\r
<hr />\r