xdan / datetimepicker

jQuery Plugin Date and Time Picker
https://xdsoft.net/jqplugins/datetimepicker/
MIT License
3.5k stars 1.52k forks source link

Replace deprecated String.prototype.substr() #786

Closed CommanderRoot closed 2 years ago

CommanderRoot commented 2 years ago

String.prototype.substr() is deprecated so we replace it with String.prototype.slice() which works similarily but isn't deprecated.

Checklist before pull request

Fixes

Nothing is broken at this time but we remove a possible issue in the future