capacitor-community / date-picker

Native DateTime Picker Plugin for Capacitor Apps
MIT License
87 stars 29 forks source link

Fix input format #29

Closed roxteddy closed 3 years ago

roxteddy commented 3 years ago

We need to set locale to en_POSIX for format string to work properly Moreover, we should only rely on this format, not on picker locale


according to the documentation : https://developer.apple.com/documentation/foundation/dateformatter chapter : Working With Fixed Format Date Representations

we should add RFC3339DateFormatter.locale = Locale(identifier: "en_US_POSIX") to the code in order to make the dateformat works

roxteddy commented 3 years ago

Fixes issue : https://github.com/capacitor-community/date-picker/issues/25