This work-around is probably good for now, but this sounds like
something that should probably be fixed in Safari itself. The locale
specifiers should follow the BCP-47 conventions so that we only use 1
convention in all places.



Edwin

On 03/28/2014 12:12 AM, aarontam wrote:
>
> In samples/DatePickerSample.js:
>
> >  		this.inherited(arguments);
> > -		this.locale = ilib.getLocale();
>
> Unsure of why this value was originally set as it can easily be out of
> sync from the locale picker and the sample can appear buggy if the
> default picker value of "en-US" is shown as selected, but pressing
> |Get Dates| and |Reset Dates| in a locale that is not "en-US" can
> result in dates that are not in "en-US" format.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/enyojs/onyx/pull/201/files#r11056628>.
>