Skip to content

Commit

Permalink
fix: 🐛 use date object instead of realtime date
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 11, 2024
1 parent fb7d26e commit 3215f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/Sensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class Sensor extends BaseObject {

if (timeOffset === 0) {
// Propagate Backwards to get the previous pass
const oldRae = this.getRae(sat, new Date(Date.now() - 1 * 1000));
const oldRae = this.rae(sat, new Date(date.getTime() - 1 * 1000));

isInViewLast = this.isRaeInFov(oldRae);
}
Expand Down

0 comments on commit 3215f22

Please sign in to comment.