From 1eed6b74c95397cf9176b98c28d0d4732cb0656c Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Tue, 4 Nov 2014 19:01:58 +0300 Subject: [PATCH] Prevent dates to fall back into the previous year in Firefox on Windows (#3832) --- plugins/calendar/lib/js/fullcalendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/lib/js/fullcalendar.js b/plugins/calendar/lib/js/fullcalendar.js index a67da0e9..3b791078 100644 --- a/plugins/calendar/lib/js/fullcalendar.js +++ b/plugins/calendar/lib/js/fullcalendar.js @@ -1513,9 +1513,9 @@ function parseISO8601(s, ignoreTimezone) { // ignoreTimezone defaults to false if (!m) { return null; } - var date = new Date(m[1], 0, 1); + var date = new Date(m[1], 0, 2); if (ignoreTimezone || !m[13]) { - var check = new Date(m[1], 0, 1, 9, 0); + var check = new Date(m[1], 0, 2, 9, 0); if (m[3]) { date.setMonth(m[3] - 1); check.setMonth(m[3] - 1);