Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Valid date with UTC offset fails validaton #2730

Open
cklogs opened this issue Sep 18, 2024 · 0 comments
Open

Valid date with UTC offset fails validaton #2730

cklogs opened this issue Sep 18, 2024 · 0 comments

Comments

@cklogs
Copy link

cklogs commented Sep 18, 2024

Describe the bug

  1. Using the following date as an example:
    var input = "09/04/2024 21:12:50 +00:00";
  2. Strictly validate the input:
    var isValidDayJsDate = dayjs(input, "MM/DD/YYYY HH:mm:ss Z", true).isValid();
  3. BUG: Validation fails.

Expected behavior

Compliant date should pass validation.

Information

  • Day.js Version 1.11.11
  • OS: Windows 11 Pro
  • Browser chrome 128
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant