Open rolandbrecht opened 1 year ago
import { getSunrise } from 'sunrise-sunset-js';
let sunrise = getSunrise(72.6992, -77.9595, new Date("2022-11-13")); console.log(sunrise);
sunrise = getSunrise(72.6992, -77.9595, new Date("2022-11-14")); console.log(sunrise);
returns
2022-11-13T16:20:45.168Z Invalid Date
any idea to get this working? Maybe a timezone problem?
import { getSunrise } from 'sunrise-sunset-js';
let sunrise = getSunrise(72.6992, -77.9595, new Date("2022-11-13")); console.log(sunrise);
sunrise = getSunrise(72.6992, -77.9595, new Date("2022-11-14")); console.log(sunrise);
returns
2022-11-13T16:20:45.168Z Invalid Date
any idea to get this working? Maybe a timezone problem?