From 1e4023eed319c988ac8ce4fb589400f67f44cfbc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Jun 2017 14:36:31 +0200 Subject: [PATCH] Allow only dates up to 2037-12-31 inside date picker --- wcfsetup/install/files/js/WCF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 27716dc37a..8dca6eba92 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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') }); } -- 2.20.1