Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set minutes? #101

Open
gaharrington opened this issue Mar 26, 2017 · 5 comments
Open

How to set minutes? #101

gaharrington opened this issue Mar 26, 2017 · 5 comments

Comments

@gaharrington
Copy link

I can not figure out how the user sets the minutes? I see the minutes hand, but can't set it.

(I tried to find documentation on this, but could not find it.)

@hexadecy
Copy link

You can only set minutes by jump of 5 minutes.

@gaharrington
Copy link
Author

I think my question wasn't clear.

Where/how does the user click to set the minutes? (I can click the hour numbers on the clock face to set the hours, but clicking on the minute hand does nothing.)

(I tried to find documentation on this, but could not find it.)

@hexadecy
Copy link

Currently, you cannot click directly on the minute hand.

  1. Click on the hour numbers two times
  2. Then click on the minute numbers two times

You can also click once and ok.
This issue have been reported in our software as too many clicks to set time.
Also similar to issue #81

@gaharrington
Copy link
Author

Is it possible to set the hour/minutes/period in code? I have tried:
vm.jsDate.setHours(vm.hour);

<input mdc-datetime-picker date="true" time="false" type="text" id="datetime"
                                       ng-model="vm.jsDate" class="md-input" format="MMM DD, YYYY hh:mm A"
                                       readonly="false">

@hexadecy
Copy link

hexadecy commented Jun 3, 2017

@gaharrington almost it!

vm.hour = 4;
vm.jsDate = new Date();
vm.jsDate.setHours(vm.hour);

or
vm.jsDate = new Date('2017-06-03T04:00:00')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants