]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Modified longDateFormat.LT format 'mm' to 'm'
authorkyungwook <kyungwook@kyungwookui-MacBook-Pro.local>
Sat, 26 Jul 2014 11:53:56 +0000 (20:53 +0900)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 20 Aug 2014 21:32:27 +0000 (00:32 +0300)
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
test/locale/ko.js

index 4466a393441ba536a071c3cc2c5bea7eb61cf108..57017f5ea5e0f30b2075337ca9a013138ef5f301 100644 (file)
@@ -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',
index 6860662a930c9015a7a354bfb66437c9d4618985..e489ce7b90bff2859fc9bf59be73fca8ba1663de 100644 (file)
@@ -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();
     },