summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2020-10-03 17:13:23 +0300
committerYuval Adam <_@yuv.al>2020-10-03 17:13:23 +0300
commitb0e01cc8e0b5283c791b9ed5d6f2f3bc7eaa372f (patch)
treee889dcae462f0d982b3ab0eb63679472dd003c80
parent7252575b72f6a574947e002b54a8c62c9656bd88 (diff)
Fix 24-hour times
-rw-r--r--iss/templates/passes.html4
1 files 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 });