Skip to content

Commit 11b8672

Browse files
committed
fix 24 hour time offset
1 parent abbc049 commit 11b8672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ function launchSitePredictions(times, station, properties, marker) {
662662
var date = new Date();
663663
var time = times[i].split(":");
664664
if (time[0] != 0) {
665-
date.setDate(date.getDate() + (7 + time[0]-1 - date.getDay()) % 7);
665+
date.setDate(date.getDate() + (7 + time[0] - date.getDay()) % 7);
666666
}
667667
date.setUTCHours(time[1]);
668668
date.setUTCMinutes(time[2]);
@@ -854,7 +854,7 @@ function showLaunchSites() {
854854
var now = new Date();
855855
var time = json[key]['times'][i].split(":");
856856
if (time[0] != 0) {
857-
date.setDate(date.getDate() + (7 + time[0]-1 - date.getDay()) % 7);
857+
date.setDate(date.getDate() + (7 + time[0] - date.getDay()) % 7);
858858
}
859859
date.setUTCHours(time[1]);
860860
date.setUTCMinutes(time[2]);

0 commit comments

Comments
 (0)