Prevent parsed dates to fall back into the previous year in Firefox on Windows (#3832) once more

This commit is contained in:
Thomas Bruederli 2014-11-05 09:26:21 +01:00
parent 52da8302cb
commit 6b43156b55

View file

@ -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);