From: Wasil W Siargiejczyk Date: Sun, 28 Sep 2014 06:53:38 +0000 (+0600) Subject: see https://github.com/moment/moment/pull/1933#discussion_r18125806 X-Git-Tag: 2.8.4~4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7294ddced8ff445c17ce8dbb610ab0b7daefc48a;p=thirdparty%2Fmoment.git see https://github.com/moment/moment/pull/1933#discussion_r18125806 --- diff --git a/moment.js b/moment.js index 354e895f3..2f898536d 100644 --- a/moment.js +++ b/moment.js @@ -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 : {