From: Marcel Werk Date: Tue, 26 Mar 2019 16:17:50 +0000 (+0100) Subject: Added support for date values before 1970 X-Git-Tag: 5.2.0_Alpha_1~180 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=051274d60cd2c1131d1054e4bac4b2d174fac28d;p=GitHub%2FWoltLab%2FWCF.git Added support for date values before 1970 Closes #2880 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index c5204e95e2..d2c3003133 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -261,7 +261,7 @@ define(['DateUtil', 'EventHandler', 'Language', 'ObjectMap', 'Dom/ChangeListener value = new Date(value).getTime(); } else { - value = new Date((isMinDate ? 1970 : 2038), 0, 1).getTime(); + value = new Date((isMinDate ? 1902 : 2038), 0, 1).getTime(); } elAttr(element, attribute, value);