From 60d78c640b1a68d1474d3c50776f8be671bc071d Mon Sep 17 00:00:00 2001 From: Michael Prager Date: Sat, 5 Nov 2011 17:20:20 +0100 Subject: [PATCH] fixed time bug which introduced by previous workaround --- comingNext/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.39.2