我正在使用来自jquery timepicker的datetimeRange,但它一直表明我的时间格式错误,即使看起来一切都完全相同。有谁看到问题所在?我不确定它是不是因为最后的UTC。
错误:
Error parsing the date/time string: Wrong time format
date/time string = 2018-04-25 13:00:00 UTC
timeFormat = hh:mm:ss
dateFormat = yy-mm-dd

我的代码:
$.timepicker.datetimeRange(
startDateTextBox,
endDateTextBox,
{
dateFormat: "yy-mm-dd",
timeFormat: "hh:mm:ss",
hourMin: 9,
hourMax: 17,
stepHour: 1,
stepMinute: 15,
range: true,
minDate: '2d',//how many days after current day
start: {}, // start picker options
end: {}, // end picker options
beforeShowDay: checkDate,
onSelect: function(selected) {
$('#btn_book').attr('disabled', false);
}
}
);

提前非常感谢!