smalot / bootstrap-datetimepicker

Both Date and Time picker widget based on twitter bootstrap (supports Bootstrap v2 and v3)
http://www.malot.fr/bootstrap-datetimepicker/
Apache License 2.0
3.49k stars 1.65k forks source link

click November 1st from October 31st's view but December 1st was selected #703

Closed 9monsters closed 5 years ago

9monsters commented 6 years ago

this is my config and init function

var startDateTime = moment(new Date()).format("YYYY-MM-DD HH:mm");
$("#dateInputPickerTimeEnd, #dateInputPickerTimeStart").datetimepicker({
      format: "yyyy-mm-dd hh:ii",
      minView: "0",
      autoclose: true,
      todayBtn: true,
      language: "zh-CN",
      startDate: startDateTime
}).bind("mouseover", function () {
       $(this).css({
        "cursor": "pointer"
        })
 }).on( "changeDate", function () {
        $("#dateInputPickerTimeEnd").datetimepicker({"setStartDate": startDateTime});
 });

here is my web page

image image

anything wrong?