Skip to content

Invalid date #32

@rolandbrecht

Description

@rolandbrecht

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions