]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[bugfix] locale/en-ie.js date format (#4849) 4624/head
authorMartin McWhorter <martin@mcwhorter.org>
Fri, 18 Jan 2019 03:11:56 +0000 (03:11 +0000)
committerKunal Marwaha <marwahaha@berkeley.edu>
Fri, 18 Jan 2019 03:11:56 +0000 (19:11 -0800)
* 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

src/locale/en-ie.js
src/test/locale/en-ie.js

index 725ff9ee262f71006bba1127df90bd39cb53f330..38166ad0775cafb06c7b9359bb522e1ad482ba6e 100644 (file)
@@ -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'
index f3290432ed111ba6f23ab63b2cf61fb0a4b5c0bd..f3e044da58dc8855f403cc832abd8ad2dc8a6596 100644 (file)
@@ -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']