kineticsocial / angularjs-datetime-picker

AngularJS DateTime Picker Without JQuery and Bootstrap
MIT License
66 stars 79 forks source link

Bug: setting zero as default minute/ #50

Open tomsoderlund opened 6 years ago

tomsoderlund commented 6 years ago

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.