From: Michael Prager Date: Sat, 5 Nov 2011 16:20:20 +0000 (+0100) Subject: fixed time bug which introduced by previous workaround X-Git-Url: https://code.delx.au/comingnext/commitdiff_plain/60d78c640b1a68d1474d3c50776f8be671bc071d fixed time bug which introduced by previous workaround --- diff --git a/comingNext/index.html b/comingNext/index.html index d809742..992da23 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -600,8 +600,8 @@ function formatTime(date) // 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 if (use12hoursTimeFormat && time.toLowerCase().indexOf('am') == -1 && time.toLowerCase().indexOf('pm') == -1) { - var hour = now.getHours(); - var minute = now.getMinutes(); + var hour = date.getHours(); + var minute = date.getMinutes(); var ap = "AM"; if (hour > 11) ap = "PM";