Skip to content

Error when initializing Date objects with non-ISO strings #68

@pcnova

Description

@pcnova

Trying the following in a unit test...

timezone-mock.register('US/Pacific');
const nonIso = new Date('Fri, 05 Jan 2024 23:00:00');

...results in the following error:

Unhandled date format passed to MockDate constructor: Fri, 05 Jan 2024 23:00:00

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