aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/liveClock.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/public/js/liveClock.js b/public/js/liveClock.js
index 07c9eae..0e7b5db 100644
--- a/public/js/liveClock.js
+++ b/public/js/liveClock.js
@@ -1,10 +1,6 @@
function time() {
var span = document.getElementById("clock");
var d = new Date();
- var s = d.getSeconds();
- var m = d.getMinutes();
- var h = d.getHours();
- span.textContent =
- ("0" + h).substr(-2) + ":" + ("0" + m).substr(-2) + ":" + ("0" + s).substr(-2);
+ span.textContent = d.toLocaleString('en-US', {hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false, timeZone: 'Europe/London' })
}
setInterval(time, 1000);