Allow only dates up to 2037-12-31 inside date picker
authorAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jun 2017 12:36:31 +0000 (14:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jun 2017 12:36:31 +0000 (14:36 +0200)
wcfsetup/install/files/js/WCF.js

index 27716dc37a47c7f24df13810c95d261acb858c1a..8dca6eba927f7c22b2d366571df81cef48dda175 100755 (executable)
@@ -3506,7 +3506,7 @@ WCF.Date.Picker = {
                                        }
                                },
                                showOtherMonths: true,
-                               yearRange: ($input.hasClass('birthday') ? '-100:+0' : '1900:2038')
+                               yearRange: ($input.hasClass('birthday') ? '-100:+0' : '1900:2037')
                        };
                        
                        if ($hasTime) {
@@ -3551,7 +3551,7 @@ WCF.Date.Picker = {
                                        showTime: false,
                                        timeFormat: this._timeFormat,
                                        timeOnly: $input.data('timeOnly') ? true : false,
-                                       yearRange: ($input.hasClass('birthday') ? '-100:+0' : '1900:2038')
+                                       yearRange: ($input.hasClass('birthday') ? '-100:+0' : '1900:2037')
                                });
                        }