We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec258f commit 3ac151fCopy full SHA for 3ac151f
jquery-ui-timepicker-addon.js
@@ -1069,7 +1069,7 @@ $.datepicker._gotoToday = function(id) {
1069
this._base_gotoToday(id);
1070
var now = new Date();
1071
var tp_inst = this._get(inst, 'timepicker');
1072
- if (tp_inst._defaults.showTimezone && tp_inst.timezone_select) {
+ if (tp_inst && tp_inst._defaults.showTimezone && tp_inst.timezone_select) {
1073
var tzoffset = now.getTimezoneOffset(); // If +0100, returns -60
1074
var tzsign = tzoffset > 0 ? '-' : '+';
1075
tzoffset = Math.abs(tzoffset);
0 commit comments