Open tomsoderlund opened 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.
scope.minute
today.getMinutes()
minute="0"
Hi! Thanks for a great directive!
Here's a bug:
https://github.com/kineticsocial/angularjs-datetime-picker/blob/master/angularjs-datetime-picker.js#L235
If
scope.minute
is zero, it will taketoday.getMinutes()
instead. So settingminute="0"
on the directive won't work.