nextDay : '[Tomorrow at] LT',
nextWeek : 'dddd [at] LT',
lastDay : '[Yesterday at] LT',
- lastWeek : '[last] dddd [at] LT',
+ lastWeek : '[Last] dddd [at] LT',
sameElse : 'L'
},
relativeTime : {
nextDay : '[Tomorrow at] LT',
nextWeek : 'dddd [at] LT',
lastDay : '[Yesterday at] LT',
- lastWeek : '[last] dddd [at] LT',
+ lastWeek : '[Last] dddd [at] LT',
sameElse : 'L'
},
relativeTime : {
nextDay : '[Tomorrow at] LT',
nextWeek : 'dddd [at] LT',
lastDay : '[Yesterday at] LT',
- lastWeek : '[last] dddd [at] LT',
+ lastWeek : '[Last] dddd [at] LT',
sameElse : 'L'
},
calendar : function (key, mom) {
for (i = 2; i < 7; i++) {
m = moment().subtract({ d: i });
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days current time");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days current time");
m.hours(0).minutes(0).seconds(0).milliseconds(0);
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days beginning of day");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days beginning of day");
m.hours(23).minutes(59).seconds(59).milliseconds(999);
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days end of day");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days end of day");
}
test.done();
},
for (i = 2; i < 7; i++) {
m = moment().subtract({ d: i });
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days current time");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days current time");
m.hours(0).minutes(0).seconds(0).milliseconds(0);
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days beginning of day");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days beginning of day");
m.hours(23).minutes(59).seconds(59).milliseconds(999);
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days end of day");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days end of day");
}
test.done();
},
for (i = 2; i < 7; i++) {
m = moment().subtract({ d: i });
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days current time");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days current time");
m.hours(0).minutes(0).seconds(0).milliseconds(0);
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days beginning of day");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days beginning of day");
m.hours(23).minutes(59).seconds(59).milliseconds(999);
- test.equal(m.calendar(), m.format('[last] dddd [at] LT'), "Today - " + i + " days end of day");
+ test.equal(m.calendar(), m.format('[Last] dddd [at] LT'), "Today - " + i + " days end of day");
}
test.done();
},