From b76558afd625dd3f06fa9c7819a205aa3203bf72 Mon Sep 17 00:00:00 2001 From: kyungwook Date: Sat, 26 Jul 2014 20:53:56 +0900 Subject: [PATCH] Modified longDateFormat.LT format 'mm' to 'm' It's little bit awkward to show 'minutes' in two digits. So, it need to be modified to show like 2[minute], not 02[minute]. --- locale/ko.js | 2 +- test/locale/ko.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/locale/ko.js b/locale/ko.js index 4466a3934..57017f5ea 100644 --- a/locale/ko.js +++ b/locale/ko.js @@ -21,7 +21,7 @@ weekdaysShort : '일_월_화_수_목_금_토'.split('_'), weekdaysMin : '일_월_화_수_목_금_토'.split('_'), longDateFormat : { - LT : 'A h시 mm분', + LT : 'A h시 m분', L : 'YYYY.MM.DD', LL : 'YYYY년 MMMM D일', LLL : 'YYYY년 MMMM D일 LT', diff --git a/test/locale/ko.js b/test/locale/ko.js index 6860662a9..e489ce7b9 100644 --- a/test/locale/ko.js +++ b/test/locale/ko.js @@ -219,12 +219,12 @@ exports['locale:ko'] = { 'calendar day' : function (test) { var a = moment().hours(2).minutes(0).seconds(0); - test.equal(moment(a).calendar(), '오늘 오전 2시 00분', 'today at the same time'); + test.equal(moment(a).calendar(), '오늘 오전 2시 0분', 'today at the same time'); test.equal(moment(a).add({m: 25}).calendar(), '오늘 오전 2시 25분', 'Now plus 25 min'); - test.equal(moment(a).add({h: 1}).calendar(), '오늘 오전 3시 00분', 'Now plus 1 hour'); - test.equal(moment(a).add({d: 1}).calendar(), '내일 오전 2시 00분', 'tomorrow at the same time'); - test.equal(moment(a).subtract({h: 1}).calendar(), '오늘 오전 1시 00분', 'Now minus 1 hour'); - test.equal(moment(a).subtract({d: 1}).calendar(), '어제 오전 2시 00분', 'yesterday at the same time'); + test.equal(moment(a).add({h: 1}).calendar(), '오늘 오전 3시 0분', 'Now plus 1 hour'); + test.equal(moment(a).add({d: 1}).calendar(), '내일 오전 2시 0분', 'tomorrow at the same time'); + test.equal(moment(a).subtract({h: 1}).calendar(), '오늘 오전 1시 0분', 'Now minus 1 hour'); + test.equal(moment(a).subtract({d: 1}).calendar(), '어제 오전 2시 0분', 'yesterday at the same time'); test.done(); }, -- 2.47.2