Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
Android 7.1.2, Google Pixel
cordova-plugin-globalization version 1.0.7
Description
The following code:
navigator.globalization.dateToString(new Date(), (obj) => { console.log(obj.value); }, null, { formatLength: 'medium', selector: 'date' });
Returns Aug 14, 2017.
The following code:
navigator.globalization.getDatePattern((obj) => { console.log(obj.pattern); }, null, { formatLength: 'medium', selector: 'date' });
Returns MMM d, y.
According to the UTR#35 spec this should return yyyy and not y for the year.
Locale is set to English (United States)