Skip to content

Unable no set minTime if it's 00:00 #603

@Gvozdikova

Description

@Gvozdikova

I have a datepicker in mode "daytime" and i want to disable the ability for user to choose date and time later than the time they open the datepicker.
Datepicker is configured with this settings
datePickerFromConfig = {
format: "DD.MM.yyyy HH:mm",
locale: "uk-UA",
firstDayOfWeek: "mo",
disableKeypress: true,
monthBtnFormat: "MMMM",
min: undefined,
max: moment(),
maxTime: moment(),
minTime: moment().hour(0).minute(0),
showTwentyFourHours: true,
hours24Format: "HH",
displayDate: undefined
};

It looks like it handles only 00:00 time this way.
If i set minTime: moment().hour(1).minute(0), it works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions