From 18d204018a29c183821e1b4d372b42c667de5295 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 7 May 2014 15:20:13 +0200 Subject: [PATCH] Fixed time zone calculation issue --- 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 adad82c30e..9472680933 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2908,7 +2908,7 @@ WCF.Date.Picker = { $inputValue = $inputValue.replace(' ', 'T'); if ($input.data('ignoreTimezone')) { - var $timezoneOffset = new Date().getTimezoneOffset(); + var $timezoneOffset = new Date($inputValue).getTimezoneOffset(); var $timezone = ($timezoneOffset > 0) ? '-' : '+'; // -120 equals GMT+0200 $timezoneOffset = Math.abs($timezoneOffset); var $hours = (Math.floor($timezoneOffset / 60)).toString(); -- 2.20.1