Skip to content
New issue

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

Time component of the value #128

Open
dam1r89 opened this issue Aug 19, 2021 · 0 comments
Open

Time component of the value #128

dam1r89 opened this issue Aug 19, 2021 · 0 comments

Comments

@dam1r89
Copy link

dam1r89 commented Aug 19, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant