From 8c950fddc7be95aa5ead529a3bac5b61949a1d70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 2 Sep 2014 20:43:31 +0200 Subject: [PATCH] Fix datepicker w/ predefined value --- wcfsetup/install/files/js/WCF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 424c472141..f42d95b45b 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3114,9 +3114,9 @@ WCF.Date.Picker = { // format default date if ($inputValue) { + $inputValue = new Date($inputValue); if (!$hasTime) { // drop timezone for date-only input - $inputValue = new Date($inputValue); $inputValue.setMinutes($inputValue.getMinutes() + $inputValue.getTimezoneOffset()); } -- 2.20.1