Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
sylvainar opened this issue Nov 28, 2024 · 1 comment
Open

Comments

@sylvainar
Copy link

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

  • Day.js Version: 1.11.13
  • OS: Ubuntu
  • Browser: Firefox
  • Time zone: Europe/Paris
@sylvainar
Copy link
Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant