snaha / diete.design

https://diete.design
MIT License
0 stars 0 forks source link

Date input returns string instead of `Date` #348

Open agazso opened 1 month ago

agazso commented 1 month ago

The bindable value property of the DateInput returns a string instead of a Date. This means you lose the timezone information and forces a formatting which ignores your locale. It would be better if the returned object were a Date and then let the user convert to whatever they want.