diff options
| author | Yuval Adam <_@yuv.al> | 2020-10-03 17:13:23 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-10-03 17:13:23 +0300 |
| commit | b0e01cc8e0b5283c791b9ed5d6f2f3bc7eaa372f (patch) | |
| tree | e889dcae462f0d982b3ab0eb63679472dd003c80 | |
| parent | 7252575b72f6a574947e002b54a8c62c9656bd88 (diff) | |
Fix 24-hour times
| -rw-r--r-- | iss/templates/passes.html | 4 |
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 }); |
