ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

Time-only picker cannot select current time #135

Closed BaronChen closed 7 years ago

BaronChen commented 7 years ago

Plunker: https://plnkr.co/edit/uPJp8PQiIr6rB4d5uL3v

Current behavior

Expected/desired behavior

allenhwkim commented 7 years ago

It shows the current time as default time.

image

You are expecting something else. e.g. a button to set to current time?

BaronChen commented 7 years ago

Yes~

If the input box is empty, there will be no way for the user to set the input box value to the current time.

allenhwkim commented 7 years ago

I am just curious. I have never seen a requirement to pick up current time.

what use case requuires to pick current time?

BaronChen commented 7 years ago

We are building a job scheduler and the user need to pick a earliest possible time for job to start.

allenhwkim commented 7 years ago

Oh.. you mean not display current time, but pick the current time.

BaronChen commented 7 years ago

Thank you very much, the fix works very well for us~