Added support for date values before 1970
authorMarcel Werk <burntime@woltlab.com>
Tue, 26 Mar 2019 16:17:50 +0000 (17:17 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 26 Mar 2019 16:17:50 +0000 (17:17 +0100)
Closes #2880

wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js

index c5204e95e2abf27383457eebee54e0206ab7d233..d2c3003133fdb20b4e8e9d92a7fd2a449388335b 100644 (file)
@@ -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);