We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vuetify Version: 3.5.3 Vue Version: 3.4.7 Browsers: Chrome 121.0.0.0 OS: Windows 10
Insert a date picker with the luxon adapter passed into the vuetify constructor.
Month text has a valid format
Month text displays "Invalid DateTime"
https://play.vuetifyjs.com/#...
The issue comes from the text computed. Luxon is expecting ISO-8601 formatting so the month needs a leading 0 for single digit months.
const text = computed(() => { return adapter.format( adapter.parseISO(`${year.value}-${month.value + 1}-01`), 'monthAndYear', ) })
The text was updated successfully, but these errors were encountered:
I will have a fix PR shortly
Sorry, something went wrong.
fix(VDatePicker): Fix month text by setting leading zero
83064a3
Fixes "Improper DateTime" error on month text when using Luxon adapter library fixes vuetifyjs#19196
0f6850c
fix(VDatePicker): correct date format in month text
74393f9
fixes vuetifyjs#19196 closes vuetifyjs#19198
KaelWD
Successfully merging a pull request may close this issue.
Environment
Vuetify Version: 3.5.3
Vue Version: 3.4.7
Browsers: Chrome 121.0.0.0
OS: Windows 10
Steps to reproduce
Insert a date picker with the luxon adapter passed into the vuetify constructor.
Expected Behavior
Month text has a valid format
Actual Behavior
Month text displays "Invalid DateTime"
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
The issue comes from the text computed. Luxon is expecting ISO-8601 formatting so the month needs a leading 0 for single digit months.
The text was updated successfully, but these errors were encountered: