summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-11-05 08:26:21 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-11-05 08:27:54 (GMT)
commita2b7edbba851047a7806b6c2f77e1435bdb7314f (patch)
treeaf64c0fc91d3f422dc16dfe09b2b9b5e9c8f720c
parent046013d0786a5b647ee5725f22918f4536cf4fcc (diff)
downloadroundcubemail-plugins-kolab-a2b7edbba851047a7806b6c2f77e1435bdb7314f.tar.gz
Prevent parsed dates to fall back into the previous year in Firefox on Windows (#3832) once more
-rw-r--r--plugins/libcalendaring/libcalendaring.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/libcalendaring/libcalendaring.js b/plugins/libcalendaring/libcalendaring.js
index 73d1c1e..ec0ef4d 100644
--- a/plugins/libcalendaring/libcalendaring.js
+++ b/plugins/libcalendaring/libcalendaring.js
@@ -127,8 +127,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);