Fixed "Now" button with iso8601.

This commit is contained in:
Jun Omae 2011-08-12 22:58:04 +09:00
parent ceabba803d
commit 897bea1bbe

View file

@ -1025,6 +1025,8 @@ $.datepicker._gotoToday = function(id) {
tzoffset = Math.abs(tzoffset);
var tzmin = tzoffset % 60
tzoffset = tzsign + ('0' + (tzoffset - tzmin) / 60).slice(-2) + ('0' + tzmin).slice(-2);
if (tp_inst._defaults.timezoneIso8609)
tzoffset = tzoffset.substring(0, 3) + ':' + tzoffset.substring(3);
tp_inst.timezone_select.val(tzoffset);
}
this._setTime(inst, now);