projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c15b9f
)
Fixed time zone calculation issue
author
Marcel Werk
<burntime@woltlab.com>
Wed, 7 May 2014 13:20:13 +0000
(15:20 +0200)
committer
Marcel Werk
<burntime@woltlab.com>
Wed, 7 May 2014 13:20:13 +0000
(15:20 +0200)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index adad82c30ebc1c01fa5ed7d1381b42232c5a271d..9472680933da8cc95466214f8e469a86768573f4 100755
(executable)
--- 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();