Skip to content

Commit

Permalink
test: ✅ fix time difference in snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 15, 2024
1 parent d923dae commit 0c2f59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/body/Sun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class Sun {
if (isDegrees) {
az = <Radians>(az * DEG2RAD);
}
const date = new Date(dateValue);
const date = dateValue instanceof Date ? dateValue : new Date(dateValue);
const lw = <Radians>(DEG2RAD * -lon);
const phi = <Radians>(DEG2RAD * lat);

Expand Down

0 comments on commit 0c2f59f

Please sign in to comment.