vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

Time component of the value

Open dam1r89 opened this issue 4 years ago • 0 comments

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.

dam1r89 avatar Aug 19 '21 08:08 dam1r89