summaryrefslogtreecommitdiffstats
path: root/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorJun Omae <jun66j5@gmail.com>2011-08-12 19:09:22 +0900
committerJun Omae <jun66j5@gmail.com>2011-08-12 19:09:22 +0900
commitb7293ca2a566dc57555307e3816a1b583a53ee2e (patch)
treedcf62b027f8c641d720aee21323cd2b9552f4d67 /jquery-ui-timepicker-addon.js
parent5ab6e7bc7dd22b4c5704c6c4eb1af498a0627241 (diff)
downloadjQuery-Timepicker-Addon-b7293ca2a566dc57555307e3816a1b583a53ee2e.zip
jQuery-Timepicker-Addon-b7293ca2a566dc57555307e3816a1b583a53ee2e.tar.gz
jQuery-Timepicker-Addon-b7293ca2a566dc57555307e3816a1b583a53ee2e.tar.bz2
When `showTimezone` is true, "Now" button sets the current timezone.
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r--jquery-ui-timepicker-addon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index 6973632..24f8c28 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -991,7 +991,7 @@ $.datepicker._gotoToday = function(id) {
this._base_gotoToday(id);
var now = new Date();
var tp_inst = this._get(inst, 'timepicker');
- if (tp_inst.timezone_select) {
+ if (tp_inst._defaults.showTimezone && tp_inst.timezone_select) {
var tzoffset = now.getTimezoneOffset(); // If +0100, returns -60
var tzsign = tzoffset > 0 ? '-' : '+';
tzoffset = Math.abs(tzoffset);