indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
527 stars 229 forks source link

Start-date property does not update date component of moment-picker that only has time format specified #261

Open CareerFairPlus opened 6 years ago

CareerFairPlus commented 6 years ago

Setting the start-date property of a moment-picker should update its date component even if the format only specifies a time component.

See this Plunker example

If ctrl.startDate is set to 09/01/2018, this moment-picker still shows today's date at the top of the picker when choosing the time.

<input class="form-control"
             placeholder="Select a start time..."
             moment-picker
             locale="en"
             format="h:mm a"
             start-date="ctrl.startDate"
             ng-model="ctrl.startTime">
image
pratikp91 commented 4 years ago

@CareerFairPlus did u find the fix for this?Facing the same issue.Maybe you could help me?

CareerFairPlus commented 4 years ago

@pratikp91 No, never could get this working. I chose to combine the date and time into a single input to get around this issue. Still waiting for a real solution.