]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
forgot to run grunt
authorIsaac Cambron <isaac@isaaccambron.com>
Sat, 5 Oct 2013 03:45:13 +0000 (23:45 -0400)
committerIsaac Cambron <isaac@isaaccambron.com>
Sat, 5 Oct 2013 03:45:13 +0000 (23:45 -0400)
moment.js
test/moment/create.js

index b7938ec9e65488eeaf39a5598c6f59b494318ff3..952179450535da4ffbc7e1f0aaefff84daa28861 100644 (file)
--- a/moment.js
+++ b/moment.js
             }
             else {
                 lang = getLangDefinition(config._l);
-                weekday = w.d != null ? parseWeekday(w.d, lang) : (w.e != null ?  parseInt(w.e) + lang._week.dow : 0);
+                weekday = w.d != null ? parseWeekday(w.d, lang) : (w.e != null ?  parseInt(w.e, 10) + lang._week.dow : 0);
 
                 //if we're parsing 'd', then the low day numbers may be next week
-                week = w.w != null ? (w.d != null && weekday < lang._week.dow ? parseInt(w.w) + 1 : w.w) : w.w;
+                week = w.w != null ? (w.d != null && weekday < lang._week.dow ? parseInt(w.w, 10) + 1 : w.w) : w.w;
 
                 temp = dayOfYearFromWeeks(fixYear(w.gg), week, weekday, lang._week.doy, lang._week.dow);
             }
index 7f7d37b32febe0cb473c1fe1cbc765fae5dd2409..1588c2aea3f6b995542614c024a1ae60786b9660 100644 (file)
@@ -9,7 +9,7 @@ var getVerifier = function (test) {
         if (!asymetrical) {
             test.equal(m.format(format), input, 'round trip: ' + description);
         }
-    }
+    };
 };
 
 exports.create = {