vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.95k stars 6.97k forks source link

[Bug Report][3.5.2] VDatePicker with date-fns adapter error Invalid time value #19145

Closed XuHaoJun closed 9 months ago

XuHaoJun commented 10 months ago

Environment

Vuetify Version: 3.5.2 Vue Version: 3.4.15 Browsers: Edge 121.0.0.0 OS: Windows 10

Steps to reproduce

  1. set vuetify date adapter to DateFnsAdapter

Expected Behavior

show DatePicker component

Actual Behavior

nothing to show and with error Invalid time value

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

fix(VDatePicker): use start of month for month model

// adapter.parseISO(`${year.value}-${month.value + 1}-01`),
// that date string not work with date-fns 
adapter.parseISO('2024-2-01');

downgrade to v3.5.1, it will work

KaelWD commented 9 months ago

Duplicate of #19196