iamkun / iamkun/dayjs

CustomParseFormat produces incorrect date

Open
#648 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
`customParseFormat` plugin produces different date when an invalid date is passed.
https://runkit.com/embed/k5j55xssyhfq

**Expected behavior**
It should produce `Invalid date`

**Information**
- Day.js v1.8.15
- OS: MacOS Mojave
- Browser Chrome 76
- Time zone: UTC+02:00

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.