Skip to content

Commit

Permalink
Merge pull request moment#1800 from kyungw00k/master
Browse files Browse the repository at this point in the history
@changelog
@section lang-bugfix
@description Use 'm' instead of 'mm' in longDateFormat in korean
  • Loading branch information
ichernev committed Aug 20, 2014
2 parents cde2764 + b76558a commit d4d3d1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion locale/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
10 changes: 5 additions & 5 deletions test/locale/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},

Expand Down

0 comments on commit d4d3d1f

Please sign in to comment.