iamkun / iamkun/dayjs

When the timestamp is in string format, it can be parsed.

Open
#2,497 0 comments 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**
When the timestamp is in string format, it can be parsed.

'1691596800000' -> 1696-01-06T15:54:17.000Z,
1691596800000 -> 2023-08-09T16:00:00.000Z

**Expected behavior**
The expected format is incorrect, resulting in an 'Invalid Date' error.

**Information**
- Day.js Version [v2.16.0]

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.