primefaces / primelocale

MIT License
74 stars 108 forks source link

Incorrect dateFormat for en-gb: (yy/mm/dd vs dd/mm/yy) #139

Closed Petri-Oosthuizen closed 9 months ago

Petri-Oosthuizen commented 9 months ago

The en-gb locale file's dateFormat entry (yy/mm/dd) differs from the standard JavaScript toLocaleDateString("en-GB") method among other sources.

new Date().toLocaleDateString("en-GB") // dd/mm/yy
new Intl.DateTimeFormat("en-GB").format(new Date()) // dd/mm/yy

Other sources: Wikipedia - Date and Time Notation in the United Kingdom Oracle Documentation - Date and Time Formats in the United Kingdom DateTime::Locale - DateTime::Locale::en_GB

Original PR: https://github.com/primefaces/primelocale/pull/65