]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adjust Thai localized short date format to read day/month/year (moment/moment#3692).
authorNate Whittaker <nate.whittaker@gmail.com>
Sat, 31 Dec 2016 19:38:40 +0000 (14:38 -0500)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 2 Mar 2017 09:22:44 +0000 (11:22 +0200)
src/locale/th.js
src/test/locale/th.js

index 423f827b34161b230d875c76e3625b229f9db034..2aa38dfcc784aa68a7da5ac4030118af01a952bf 100644 (file)
@@ -15,7 +15,7 @@ export default moment.defineLocale('th', {
     longDateFormat : {
         LT : 'H:mm',
         LTS : 'H:mm:ss',
-        L : 'YYYY/MM/DD',
+        L : 'DD/MM/YYYY',
         LL : 'D MMMM YYYY',
         LLL : 'D MMMM YYYY เวลา H:mm',
         LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
index 2b231772bcff339cf450e5aeccc677f69884fefa..3ba27c6697c1fa1888e7acac61c3d519e2e52459 100644 (file)
@@ -37,11 +37,11 @@ test('format', function (assert) {
             ['a A',                                'หลังเที่ยง หลังเที่ยง'],
             ['[the] DDDo [day of the year]',       'the 45 day of the year'],
             ['LTS',                                '15:25:50'],
-            ['L',                                  '2010/02/14'],
+            ['L',                                  '14/02/2010'],
             ['LL',                                 '14 กุมภาพันธ์ 2010'],
             ['LLL',                                '14 กุมภาพันธ์ 2010 เวลา 15:25'],
             ['LLLL',                               'วันอาทิตย์ที่ 14 กุมภาพันธ์ 2010 เวลา 15:25'],
-            ['l',                                  '2010/2/14'],
+            ['l',                                  '14/2/2010'],
             ['ll',                                 '14 ก.พ. 2010'],
             ['lll',                                '14 ก.พ. 2010 เวลา 15:25'],
             ['llll',                               'วันอาทิตย์ที่ 14 ก.พ. 2010 เวลา 15:25']