We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d9f0f4 commit 6d0e5baCopy full SHA for 6d0e5ba
jquery-ui-timepicker-addon.js
@@ -1589,7 +1589,11 @@
1589
// object will only return the timezone offset for the current locale, so we
1590
// adjust it accordingly. If not using timezone option this won't matter..
1591
// If a timezone is different in tp, keep the timezone as is
1592
- if(tp_inst && tp_inst.timezone != null){
+ if(tp_inst){
1593
+ // look out for DST if tz wasn't specified
1594
+ if(tp_inst._defaults.timezone === null){
1595
+ tp_inst.timezone = tp_date.getTimezoneOffset()*-1;
1596
+ }
1597
date = $.timepicker.timezoneAdjust(date, tp_inst.timezone);
1598
tp_date = $.timepicker.timezoneAdjust(tp_date, tp_inst.timezone);
1599
}
0 commit comments