We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76285d2 + 8ad3f66 commit 3d664daCopy full SHA for 3d664da
jquery-ui-timepicker-addon.js
@@ -1768,7 +1768,7 @@
1768
var off = date.getTimezoneOffset() * -1,
1769
minutes = off % 60,
1770
hours = (off - minutes) / 60;
1771
- return (off >= 0 ? '+' : '-') + ('0' + (hours * 101).toString()).substr(-2) + ('0' + (minutes * 101).toString()).substr(-2);
+ return (off >= 0 ? '+' : '-') + ('0' + (hours * 101).toString()).slice(-2) + ('0' + (minutes * 101).toString()).slice(-2);
1772
};
1773
1774
/**
@@ -1880,4 +1880,4 @@
1880
*/
1881
$.timepicker.version = "1.1.2";
1882
1883
-})(jQuery);
+})(jQuery);
0 commit comments