From b0e01cc8e0b5283c791b9ed5d6f2f3bc7eaa372f Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sat, 3 Oct 2020 17:13:23 +0300 Subject: Fix 24-hour times --- iss/templates/passes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iss/templates/passes.html b/iss/templates/passes.html index 2037d82..17b9445 100644 --- a/iss/templates/passes.html +++ b/iss/templates/passes.html @@ -71,7 +71,7 @@ data: { predictions: {{ predictions_json|safe }}, display: { - hour12: false, + hour12: true, degrees: true }, }, @@ -84,7 +84,7 @@ } }, localizedPredictions: function() { - var hour12 = this.display.hour12; + var hour12 = !this.display.hour12; var preds = JSON.parse(JSON.stringify(this.predictions)).map(function(p) { p.date = new Date(p.rise.time).toLocaleDateString(); p.rise.time = new Date(p.rise.time).toLocaleTimeString([], { hour12 }); -- cgit v1.3.1