Skip to content

Commit b7293ca

Browse files
committed
When showTimezone is true, "Now" button sets the current timezone.
1 parent 5ab6e7b commit b7293ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ $.datepicker._gotoToday = function(id) {
991991
this._base_gotoToday(id);
992992
var now = new Date();
993993
var tp_inst = this._get(inst, 'timepicker');
994-
if (tp_inst.timezone_select) {
994+
if (tp_inst._defaults.showTimezone && tp_inst.timezone_select) {
995995
var tzoffset = now.getTimezoneOffset(); // If +0100, returns -60
996996
var tzsign = tzoffset > 0 ? '-' : '+';
997997
tzoffset = Math.abs(tzoffset);

0 commit comments

Comments
 (0)