From 4bf3fbf55100d946057b067814e8836fe5e44eda Mon Sep 17 00:00:00 2001 From: Isaac Cambron Date: Mon, 19 Aug 2013 06:10:05 +0300 Subject: [PATCH] use the second day of each month to find the month name --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index fe9df98a1..33713d85e 100644 --- a/moment.js +++ b/moment.js @@ -405,7 +405,7 @@ for (i = 0; i < 12; i++) { // make the regex if we don't have it already if (!this._monthsParse[i]) { - mom = moment([2000, i]); + mom = moment([2000, i, 2]); regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); } -- 2.47.2