From 051274d60cd2c1131d1054e4bac4b2d174fac28d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 26 Mar 2019 17:17:50 +0100 Subject: [PATCH] Added support for date values before 1970 Closes #2880 --- wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1