]> code.delx.au - comingnext/blobdiff - comingNext/index.html
fixed time bug which introduced by previous workaround
[comingnext] / comingNext / index.html
index d809742db8b2cf85a534c488df3ad024172c26ef..992da2376cbf14ebb9eb6af2fe29ed771301863c 100644 (file)
@@ -600,8 +600,8 @@ function formatTime(date)
 \r
        // workaround for bug introduced by Anna firmwares, which causes Date().toLocaleTimeString() to no longer return time in 12h format even though this has been defined in system settings\r
        if (use12hoursTimeFormat && time.toLowerCase().indexOf('am') == -1 && time.toLowerCase().indexOf('pm') == -1) { \r
-               var hour = now.getHours();\r
-               var minute = now.getMinutes();\r
+               var hour = date.getHours();\r
+               var minute = date.getMinutes();\r
                var ap = "AM";\r
                if (hour > 11)\r
                        ap = "PM";\r