XDSoft DateTimePicker到Jalali日历

问题描述

我的脚本正在使用DateTimePicker by XDSoft.net,并且我想将日历转换为Jalali (Persian date time),这是我的脚本在common.js文件中使用的代码,您知道如何将日历更改为贾拉利?

我的代码

function appDatepicker(e) {
    void 0 === app._date_picker_locale_configured && (jQuery.datetimepicker.setLocale(app.locale),(app._date_picker_locale_configured = !0));
    var t = { date_format: app.options.date_format,time_format: app.options.time_format,week_start: app.options.calendar_first_day,date_picker_selector: ".datepicker",date_time_picker_selector: ".datetimepicker" },o = $.extend({},t,e),a = void 0 !== o.element_date ? o.element_date : $(o.date_picker_selector),n = void 0 !== o.element_time ? o.element_time : $(o.date_time_picker_selector);
    (0 === n.length && 0 === a.length) ||
        ($.each(a,function () {
            var e = $(this),t = { timepicker: !1,scrollInput: !1,lazyInit: !0,format: o.date_format,dayOfWeekStart: o.week_start },a = e.attr("data-date-end-date"),n = e.attr("data-date-min-date"),i = e.attr("data-lazy");
            i && (t.lazyInit = "true" == i),a && (t.maxDate = a),n && (t.minDate = n),e.datetimepicker(t),e
                    .parents(".form-group")
                    .find(".calendar-icon")
                    .on("click",function () {
                        e.focus(),e.trigger("open.xdsoft");
                    });
        }),$.each(n,t = { lazyInit: !0,validateOnBlur: !1,dayOfWeekStart: o.week_start };
            24 == o.time_format ? (t.format = o.date_format + " H:i") : ((t.format = o.date_format + " g:i A"),(t.formatTime = "g:i A"));
            var a = e.attr("data-date-end-date"),i = e.attr("data-lazy");
            i && (opt.lazyInit = "true" == i),e.trigger("open.xdsoft");
                    });
        }));
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)