Skip to content

Commit cdd8fee

Browse files
authored
Merge pull request projecthorus#120 from LukePrior/testing
fix showing old predictions
2 parents e1ce587 + 078bded commit cdd8fee

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
@@ -669,7 +669,7 @@ function launchSitePredictions(times, station, properties, marker) {
669669
date.setSeconds(0);
670670
date.setMilliseconds(0);
671671
date.setMinutes( date.getMinutes() - 45 );
672-
if (date < now) {
672+
while (date < now) {
673673
if (time[0] == 0) {
674674
date.setDate(date.getDate() + 1);
675675
} else {
@@ -861,7 +861,7 @@ function showLaunchSites() {
861861
date.setUTCMinutes(time[2]);
862862
date.setSeconds(0);
863863
date.setMinutes( date.getMinutes() - 45 );
864-
if (date < now) {
864+
while (date < now) {
865865
if (time[0] == 0) {
866866
date.setDate(date.getDate() + 1);
867867
} else {

0 commit comments

Comments
 (0)