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

Calendar datetime picker with stepMinute 15 #115

Closed
fairking opened this issue Dec 18, 2019 · 3 comments
Closed

Calendar datetime picker with stepMinute 15 #115

fairking opened this issue Dec 18, 2019 · 3 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@fairking
Copy link

fairking commented Dec 18, 2019

I have a field which is DateTime picker with stepMinute = 15. The problem is the minutes start not from zero but from some random number (probably from the current time). So increasing or decreasing minutes make those steps like 11, 26, 41, 56. But the way I'd like and how I think it should work is to start from 00 and then increse to 15, 30, 45. I think the initial value must be somewhere to the closest interval (eg. if now is 14:35 then it must be 14:30).
I could not figure out how to fix the issue.

<Calendar id="from_date" v-model="item.fromDate" date-format="dd.mm.yy" 
:step-minute="15" :showTime="!item.allDay" />

image

PS. At the beginning the field is DatePicker with time 00:00. Then I switch it to DateTimePicker dynamically so showTime becomes true.

Also as an option there could be a dropdown for hour/minute input.

@fairking fairking changed the title Calendar time picker with stepMinute 15 Calendar datetime picker with stepMinute 15 Dec 19, 2019
@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Dec 20, 2019
@melloware
Copy link
Member

I just fixed this for PrimeFaces. You can probably look at my PR and fix PrimeVue the same way.
https://github.com/primefaces/primefaces/pull/6048/files

@west-farmer
Copy link

Expecting this feture! So I can remove the complex computed field from my code.

@simcen
Copy link

simcen commented Mar 2, 2021

Is there any workaround for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

6 participants