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

Fix date format for DatePicker component parser #10646

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

gregorbg
Copy link
Member

It seems that our DatePicker library wants the "year" part to be specified as lowercase yyyy rather than standard JS uppercase YYYY.

I could not find a precise documentation explaining why (or what the difference is). I just noticed locally that uppercase throws errors in the console while lowercase works without any flaws. Also, the examples at https://reactdatepicker.com/ all use lowercase yyyy, I couldn't find any uppercase YYYY at all in there.

@gregorbg
Copy link
Member Author

Merging based on Manu's review

@gregorbg gregorbg merged commit 996c41f into thewca:main Jan 18, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants