Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.48k stars 147 forks source link

Option to keep output in local time but in a Date object #755

Closed JohnCampionJr closed 8 months ago

JohnCampionJr commented 8 months ago

Is your feature request related to a problem? Please describe. My dates are input to the date picker via local time, but output as UTC which is causing inconsistencies throughout the app.

Describe the solution you'd like An option to keep output Date object in local time. The utc option, if set to false, puts the output in a string in local time, but not a Date

Describe alternatives you've considered Open to suggestions

Jasenkoo commented 8 months ago

You can use timezone to keep it in the Date object

JohnCampionJr commented 8 months ago

Thanks, I'm sorry I missed that.

Should I just get the clients time zone and set the timezone option to that?