Skip to content

Bug: setting zero as default minute/ #50

@tomsoderlund

Description

@tomsoderlund

Hi! Thanks for a great directive!

Here's a bug:

https://github.com/kineticsocial/angularjs-datetime-picker/blob/master/angularjs-datetime-picker.js#L235

var minute = scope.minute || today.getMinutes();

If scope.minute is zero, it will take today.getMinutes() instead. So setting minute="0" on the directive won't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions