Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
szelga authored and ichernev committed Nov 17, 2014
1 parent 5131e2d commit 7294ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,9 +939,9 @@
lastWeek : '[Last] dddd [at] LT',
sameElse : 'L'
},
calendar : function (key, mom) {
calendar : function (key, mom, now) {
var output = this._calendar[key];
return typeof output === 'function' ? output.apply(mom, Array.prototype.slice.call(arguments, 2)) : output;
return typeof output === 'function' ? output.apply(mom, [now]) : output;
},

_relativeTime : {
Expand Down

0 comments on commit 7294ddc

Please sign in to comment.