From c14917cb3d5cbf3a8c164c41069b33b028b1e30d Mon Sep 17 00:00:00 2001 From: Vincent Roy Date: Wed, 21 Mar 2012 00:22:28 +0530 Subject: [PATCH] Fixed weekday returned when isUTC date. --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index 7b2047a88..3b2a46bf7 100644 --- a/moment.js +++ b/moment.js @@ -668,7 +668,7 @@ }, day : function (input) { - var day = this._d.getDay(); + var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); return input == null ? day : this.add({ d : input - day }); }, -- 2.47.2