mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Make yearOffset to make it usable - Fix I used let - LOL
This commit is contained in:
parent
ed8a1540bb
commit
b7be13d75e
@ -1476,7 +1476,7 @@ var datetimepickerFactory = function ($) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_this.str = function () {
|
_this.str = function () {
|
||||||
let format = options.format;
|
var format = options.format;
|
||||||
if (options.yearOffset) {
|
if (options.yearOffset) {
|
||||||
format = format.replace('Y', _this.currentTime.getFullYear() + options.yearOffset);
|
format = format.replace('Y', _this.currentTime.getFullYear() + options.yearOffset);
|
||||||
format = format.replace('y', String(_this.currentTime.getFullYear() + options.yearOffset).substring(2, 4));
|
format = format.replace('y', String(_this.currentTime.getFullYear() + options.yearOffset).substring(2, 4));
|
||||||
|
Loading…
Reference in New Issue
Block a user