-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
dayjs constructor does not work with strict flag set to true. #1784
Comments
I'm having the same problem. Even worse though, the fix described in #1358 (comment) gives me the wrong timezone:
Environment
|
This is similar to issue #1852 only for the "T" character as a legal separator character. As an additional problem the parsing will fail because the logic for 'strict' fails under certain conditions (see issue #1596). I am preparing a PR for issue #1596 and if this PR will be accepted and merged, I can easily add the necessary modifications required by this issue here. |
Just as kind of a workaround: escaping the 'T' will solve this problem too But as this is a very common format, I would prefere a solution with 'T' as an official separator character, identified by dayjs. |
This seems to be solved now (
|
Describe the bug
another example
please see #1358 (comment)
Expected behavior
In the first example, isValid() should return true
In the second example, dayjs should behave in the same manner as moment.
Information
The text was updated successfully, but these errors were encountered: