From: Matthias Schmidt Date: Fri, 27 Sep 2013 17:16:34 +0000 (+0200) Subject: Fixes date time issue in Firefox X-Git-Tag: 2.0.0_Beta_10~15^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=90c6b708157535686e1602786e27c7a03889bd0f;p=GitHub%2FWoltLab%2FWCF.git Fixes date time issue in Firefox --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 47a9c8c482..067b89271e 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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...