Fixes date time issue in Firefox
authorMatthias Schmidt <gravatronics@live.com>
Fri, 27 Sep 2013 17:16:34 +0000 (19:16 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 27 Sep 2013 17:16:34 +0000 (19:16 +0200)
wcfsetup/install/files/js/WCF.js

index 47a9c8c48208c59b15988b5412aedf8c859f7f45..067b89271e86e2954014aba56c43e0910e44c3fa 100755 (executable)
@@ -2854,7 +2854,7 @@ WCF.Date.Picker = {
                        
                        // format default date
                        if ($inputValue) {
-                               $input.removeClass('hasDatepicker').datetimepicker('setDate', new Date($inputValue));
+                               $input.removeClass('hasDatepicker').datetimepicker('setDate', new Date($inputValue.replace(' ', 'T')));
                        }
                        
                        // bug workaround: setDate creates the widget but unfortunately doesn't hide it...