From: Adam Shaw Date: Tue, 17 Sep 2013 05:24:57 +0000 (-0700) Subject: fix for utc-mode .weekday() being incorrect X-Git-Tag: 2.3.0~29^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7310ee50ae75a6f7fe747e15020e1982522c3dc;p=thirdparty%2Fmoment.git fix for utc-mode .weekday() being incorrect --- diff --git a/moment.js b/moment.js index 3a5ebd2fe..2c520e007 100644 --- a/moment.js +++ b/moment.js @@ -1544,7 +1544,7 @@ }, weekday : function (input) { - var weekday = (this._d.getDay() + 7 - this.lang()._week.dow) % 7; + var weekday = (this.day() + 7 - this.lang()._week.dow) % 7; return input == null ? weekday : this.add("d", input - weekday); },