iamkun / iamkun/dayjs

Parse error with DD.MMM.YY format

Open
#2,818 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Parse error with date format DD.MMM.YY, dayjs('29.Jul.21', 'DD.MMM.YY') returns Invalid Date.
Intresting that I tried old version like 1.8.16 and it works fine, but last 1.11.13 returns Invalid Date.

dayjs.extend(customParseFormat); is used of course.

- Day.js Version 1.11.13
- OS: Windows
- Browser Edge

Contributor guide

Open the contributing guide

Research direction

Start by reproducing dayjs('29.Jul.21', 'DD.MMM.YY') with customParseFormat enabled on version 1.11.13, then compare it with 1.8.16. Trace the customParseFormat parsing path for the DD.MMM.YY pattern and verify the result against the reported expected date. Done means this input parses correctly again with a regression test covering it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.