JohannesHoppe / angular-date-value-accessor

Home of the Angular DateValueAccessor for <input type="date">
http://johanneshoppe.github.io/angular-date-value-accessor/
MIT License
78 stars 19 forks source link

Safari Support #32

Open JohannesHoppe opened 2 years ago

JohannesHoppe commented 2 years ago

This is proof of work, I successfully patched date input controls on my old Safari. But it's not ready for use. As specified in the README of the polyfill project:

Date objects are displayed in the local time zone, which causes date drift by a day sometimes. Looking into this issue now. source: https://github.com/little-core-labs/date-input-polyfill

2021-11-19 10 46 36

This screws up the produced dates completely, so it would be required to add the offset manually – but only for Safari. This means some extra work, but it's definitely doable. We can now recommend the DateValueAccessor to our readers without any restrictions, it will (soon) work in all browsers without any concerns.

FYI @fmalcher @d-koppenhagen