Recras / angular-jquery-timepicker

AngularJS directive for jQueryUI Timepicker
MIT License
53 stars 41 forks source link

Manual assignment changes the date #46

Closed ghost closed 5 years ago

ghost commented 5 years ago

When the time is writed, date is modified and put as: January 1st, 1970.

timmipetit commented 5 years ago

Could you provide an example how/where this exactly happens?

ghost commented 5 years ago

It happens with any example. Here is one.

timmipetit commented 5 years ago

This is because during the typing the model is updated and the time is probably invalid at the time. When this happens, the model is set to null. You can use base-date to work around this.

ghost commented 5 years ago

So, it would be nice if base date defaults to current date or from ngModel value.

timmipetit commented 5 years ago

We currently have no intention to change this behaviour ourselfs, but we're happy to accept merge requests.