Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.datepicker._base_gotoToday = $.datepicker._gotoToday;
- $.datepicker._gotoToday = function (id) {
- var inst = this._getInst($(id)[0]);
- this._base_gotoToday(id);
- var tp_inst = this._get(inst, 'timepicker');
- if (!tp_inst) {
- return;
- }
- var tzoffset = $.timepicker.timezoneOffsetNumber(tp_inst.timezone);
- var now = new Date();
- var utcNow = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds());
- this._setTime(inst, utcNow)
- this._setDate(inst, utcNow);
- tp_inst._onSelectHandler();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement