iamkun / iamkun/dayjs

Date parsing in strict mode doesn't allow timezone in "-01:00" format

Open
#2,778 1 comment 6 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**
Date parsing in strict mode doesn't work when the timezone is in +/-HH:MM.

![Screenshot_20241128_151032](https://github.com/user-attachments/assets/cea583e0-c9fd-48cc-8b0b-d3e3969f309b)

**Expected behavior**
Parsing should happen properly.

**Information**
- Day.js Version: 1.11.13
- OS: Ubuntu
- Browser: Firefox
- Time zone: Europe/Paris

Contributor guide

Open the contributing guide

Research direction

No source file, entry point, or test is named in the report. Reproduce strict-mode parsing of a timezone in +/-HH:MM with Day.js 1.11.13, then locate the parsing logic and existing date-parsing tests. Done means the reported format parses correctly and a regression test covers it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.