From b7be13d75e4edfb75b7c254a647046565c12e7af Mon Sep 17 00:00:00 2001 From: EThaiZone Date: Thu, 15 Feb 2018 17:17:26 +0700 Subject: [PATCH] Make yearOffset to make it usable - Fix I used let - LOL --- jquery.datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 61fbbf4..6b3f27d 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -1476,7 +1476,7 @@ var datetimepickerFactory = function ($) { }; _this.str = function () { - let format = options.format; + var format = options.format; if (options.yearOffset) { format = format.replace('Y', _this.currentTime.getFullYear() + options.yearOffset); format = format.replace('y', String(_this.currentTime.getFullYear() + options.yearOffset).substring(2, 4));