Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $.datepicker._base_gotoToday = $.datepicker._gotoToday;
  2. $.datepicker._gotoToday = function (id) {
  3. var inst = this._getInst($(id)[0]);
  4. this._base_gotoToday(id);
  5. var tp_inst = this._get(inst, 'timepicker');
  6. if (!tp_inst) {
  7. return;
  8. }
  9.  
  10. var tzoffset = $.timepicker.timezoneOffsetNumber(tp_inst.timezone);
  11.  
  12. var now = new Date();
  13. var utcNow = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds());
  14. this._setTime(inst, utcNow)
  15. this._setDate(inst, utcNow);
  16. tp_inst._onSelectHandler();
  17.  
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement