Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultTime not working properly #368

Open
madzman23 opened this issue Jun 1, 2017 · 2 comments
Open

defaultTime not working properly #368

madzman23 opened this issue Jun 1, 2017 · 2 comments

Comments

@madzman23
Copy link

I created a CRUD application where there is a timepicker, during creation works properly setting the default time to 12:00 AM. But when I used the edit, it didn't load the value of the timepicker, it always sets at 11:01 PM. I set the defaultTime to the value of the input.

    var cutOffTimeValue = $('#CutOffTime').val();

    if (cutOffTimeValue == "" || cutOffTimeValue == undefined) {
        $('#CutOffTime').timepicker({
            defaultTime: "true",
            disableFocus: "true",
            minuteStep: 5
        });
    } else {
        $('#CutOffTime').timepicker({
            defaultTime: cutOffTimeValue ,
            disableFocus: "true",
            minuteStep: 5
        });
    }
@madzman23
Copy link
Author

Up!

@cesc1989
Copy link

cesc1989 commented Apr 2, 2019

This is still a thing in 2019 and the plugin is unmaintained :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants