You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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()
andsetUTCHours()
, so it should keep the timezones consistent.This would not break existing behavior.
The text was updated successfully, but these errors were encountered: