From: Nate Whittaker Date: Sat, 31 Dec 2016 19:38:40 +0000 (-0500) Subject: Adjust Thai localized short date format to read day/month/year (moment/moment#3692). X-Git-Tag: 2.18.0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98daf44cd04a2ea1b5c8ec07077f6e6e1a65fcfd;p=thirdparty%2Fmoment.git Adjust Thai localized short date format to read day/month/year (moment/moment#3692). --- diff --git a/src/locale/th.js b/src/locale/th.js index 423f827b3..2aa38dfcc 100644 --- a/src/locale/th.js +++ b/src/locale/th.js @@ -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' diff --git a/src/test/locale/th.js b/src/test/locale/th.js index 2b231772b..3ba27c669 100644 --- a/src/test/locale/th.js +++ b/src/test/locale/th.js @@ -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']