fix(isDate): Timezone Offset Fix by tomaspanek · Pull Request #2257 · validatorjs/validator.js

@sacummings91 the issue was caused by the getDate() method returning the day in UTC, which could differ from the actual date being parsed if the runtime environment has a timezone to the west of UTC+0.

This PR has been merged, but it has not been released as part of a new version yet, see #2269. The package maintainers faced some challenges preparing a new build way back in August – given the delay, I assume things just have been very busy on their end.

Unless you need any new features/fixes introduced in the 13.11.0 version, I'd recommend using the 13.9.0 version. In case you have the validator package as a dependency of a dependency, you can include the following in your package.json:

If using yarn:

{
    "resolutions": {
        "validator": "13.9.0"
    }
}

If using npm:

{
    "overrides": {
        "validator": "13.9.0"
    }
}

Hopefully the new release will be out sometime soon!