Skip to content

Commit 897bea1

Browse files
committed
Fixed "Now" button with iso8601.
1 parent ceabba8 commit 897bea1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,8 @@ $.datepicker._gotoToday = function(id) {
10251025
tzoffset = Math.abs(tzoffset);
10261026
var tzmin = tzoffset % 60
10271027
tzoffset = tzsign + ('0' + (tzoffset - tzmin) / 60).slice(-2) + ('0' + tzmin).slice(-2);
1028+
if (tp_inst._defaults.timezoneIso8609)
1029+
tzoffset = tzoffset.substring(0, 3) + ':' + tzoffset.substring(3);
10281030
tp_inst.timezone_select.val(tzoffset);
10291031
}
10301032
this._setTime(inst, now);

0 commit comments

Comments
 (0)