Fixed variable reference
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Jul 2016 13:23:40 +0000 (15:23 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Jul 2016 13:23:46 +0000 (15:23 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js

index 00804f2b858bd64c395cee497028a2ffa2318cfc..928f4b118a5bfd7ecaa5b54c11d3081a22922d8e 100644 (file)
@@ -56,7 +56,7 @@ define(['DateUtil', 'Language', 'ObjectMap', 'Dom/ChangeListener', 'Ui/Alignment
                                // convert value
                                var date = null, value = elAttr(element, 'value');
                                if (elAttr(element, 'value')) {
-                                       if (isDateTime) {
+                                       if (isTimeOnly) {
                                                date = new Date();
                                                var tmp = value.split(':');
                                                date.setHours(tmp[0], tmp[1]);