iamkun / iamkun/dayjs

.isValid() error on iphone

Open
#1,845 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

**Describe the bug**
`
dayjs('1990-05-10 00:00').isValid()
`
Date format like 1990-05-10 00:00 ,when is on Iphone, it is false, on android is ok.
and if format like 1990/05/10 00:00 also ok.

**Information**
- Day.js Version [e.g. v1.0.0]
- OS: IOS
- Browser [any]
- Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two date strings from the issue on an iPhone and comparing their validity with Android behavior. The report names no files or tests; done means the space-separated date is handled consistently on iOS while preserving the slash-form behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.