From 6b43156b55ee5c1c7a90b940c3567fb7d6cf57b8 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 5 Nov 2014 09:26:21 +0100 Subject: [PATCH] Prevent parsed dates to fall back into the previous year in Firefox on Windows (#3832) once more --- plugins/libcalendaring/libcalendaring.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/libcalendaring/libcalendaring.js b/plugins/libcalendaring/libcalendaring.js index 5b8ad5cd..8bf9c356 100644 --- a/plugins/libcalendaring/libcalendaring.js +++ b/plugins/libcalendaring/libcalendaring.js @@ -138,8 +138,8 @@ function rcube_libcalendaring(settings) return null; } - var date = new Date(m[1], 0, 1), - check = new Date(m[1], 0, 1, 9, 0); + var date = new Date(m[1], 0, 2), + check = new Date(m[1], 0, 2, 9, 0); if (m[3]) { date.setMonth(m[3] - 1); check.setMonth(m[3] - 1);