From: Martin McWhorter Date: Fri, 18 Jan 2019 03:11:56 +0000 (+0000) Subject: [bugfix] locale/en-ie.js date format (#4849) X-Git-Tag: 2.24.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4624%2Fhead;p=thirdparty%2Fmoment.git [bugfix] locale/en-ie.js date format (#4849) * Update locale/en-ie.js Correct to en-IE date locale to match the ICU definition: http://www.localeplanet.com/icu/en-IE/index.html * Revert to orgininal * Update unit test --- diff --git a/src/locale/en-ie.js b/src/locale/en-ie.js index 725ff9ee2..38166ad07 100644 --- a/src/locale/en-ie.js +++ b/src/locale/en-ie.js @@ -13,7 +13,7 @@ export default moment.defineLocale('en-ie', { longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'DD-MM-YYYY', + L : 'DD/MM/YYYY', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY HH:mm', LLLL : 'dddd D MMMM YYYY HH:mm' diff --git a/src/test/locale/en-ie.js b/src/test/locale/en-ie.js index f3290432e..f3e044da5 100644 --- a/src/test/locale/en-ie.js +++ b/src/test/locale/en-ie.js @@ -38,11 +38,11 @@ test('format', function (assert) { ['a A', 'pm PM'], ['[the] DDDo [day of the year]', 'the 45th day of the year'], ['LTS', '15:25:50'], - ['L', '14-02-2010'], + ['L', '14/02/2010'], ['LL', '14 February 2010'], ['LLL', '14 February 2010 15:25'], ['LLLL', 'Sunday 14 February 2010 15:25'], - ['l', '14-2-2010'], + ['l', '14/2/2010'], ['ll', '14 Feb 2010'], ['lll', '14 Feb 2010 15:25'], ['llll', 'Sun 14 Feb 2010 15:25']