-
-
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
Parsing with Unix Timestamp tokens (X/x) and other visual tokens in strict mode results in Invalid Date #1569
Labels
Comments
I see. Cause x X format is supported via advancedFormat plugin, you may enable it to use in strict mode |
It's enabled. look at the collapsed "source" section of the issue I have this there: const dayjs = require('dayjs');
dayjs.extend(require('dayjs/plugin/customParseFormat'))
dayjs.extend(require('dayjs/plugin/advancedFormat')) |
fixed in #1571 |
Any plans of making a release with the change? |
1 similar comment
Any plans of making a release with the change? |
🎉 This issue has been resolved in version 1.10.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When X/x token is used and there are visual/escaped tokens in strict mode you get
Invalid Date
, best described with this code snippet and log result:source:
output:
Expected behavior
not to get
Invalid Date
Information
related #1533 #1567
The text was updated successfully, but these errors were encountered: