Date.js
authorEdward <edward@roojs.com>
Mon, 31 Aug 2015 04:19:43 +0000 (12:19 +0800)
committerEdward <edward@roojs.com>
Mon, 31 Aug 2015 04:19:43 +0000 (12:19 +0800)
Date.js

diff --git a/Date.js b/Date.js
index 2b9c9ee..92a92db 100644 (file)
--- a/Date.js
+++ b/Date.js
@@ -358,7 +358,7 @@ Date.formatCodeToRegex = function(character, currentGroup) {
             s:"(?:\\d{2})"};
     case "F":
         return {g:1,
-            c:"m = parseInt(Date.monthNumbers[results[" + currentGroup + "].substring(0, 3)], 10);\n",
+            c:"m = parseInt(Date.monthNumbers[results[" + currentGroup + "].substring(0, 3)], 10); d = 1;\n",
             s:"(" + Date.monthNames.join("|") + ")"};
     case "M":
         return {g:1,