]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed weekday returned when isUTC date. 212/head
authorVincent Roy <vincentroy8@gmail.com>
Tue, 20 Mar 2012 18:52:28 +0000 (00:22 +0530)
committerVincent Roy <vincentroy8@gmail.com>
Tue, 20 Mar 2012 18:52:28 +0000 (00:22 +0530)
moment.js

index 7b2047a88d5bd35239113009f69b7c552be515ba..3b2a46bf7a2cdbc3705adebe66ddec63ebea55f5 100644 (file)
--- a/moment.js
+++ b/moment.js
         },
 
         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 });
         },