Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libcalendaring

Thomas Brüderli bruederli at kolabsys.com
Wed Nov 5 09:28:03 CET 2014


 plugins/libcalendaring/libcalendaring.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a2b7edbba851047a7806b6c2f77e1435bdb7314f
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Wed Nov 5 09:26:21 2014 +0100

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

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




More information about the commits mailing list