iamkun / dayjs

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
https://day.js.org
MIT License
47.07k stars 2.31k forks source link

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

Open sylvainar opened 3 days ago

sylvainar commented 3 days ago

Describe the bug Date parsing in strict mode doesn't work when the timezone is in +/-HH:MM.

Screenshot_20241128_151032

Expected behavior Parsing should happen properly.

Information

sylvainar commented 3 days ago

It seems that it cannot work in strict mode because comparing the values will never work here, since the results are on two different timezones.

image