vue-datepicker
vue-datepicker copied to clipboard
Time component of the value
Would you accept a PR that would add property called preserveTime (or something similar) that would emit new date but keep the time from the initial input.
For this setup:
value = new Date(2021, 8, 8, 13, 35, 2)
v-model="value"
after picking a date it would emit selected date but with "00:00:00" time.
My main concern would be timezone problem, so I would use getUTCHours() and setUTCHours(), so it should keep the timezones consistent.
This would not break existing behavior.