warg
1
Hello,
I have a date field with time: true
and I would like to define the steps for the minutes according to this time field documentation: https://getkirby.com/docs/reference/panel/fields/time#step
Setting it like this have no effect:
published:
type: date
time: true
step: 1
Afterwards I found out that according to https://getkirby.com/docs/reference/panel/fields/date this field option doesn’t exist. Is this a missing feature or is there an alternative way to achieve this?
Best Regards
Your syntax is not correct:
Pass true
or an array of time field options to show the time selector.
date:
label: Date
type: date
time:
- step: 1
1 Like
warg
3
Wonderful solution: it works! Thank you !
Hi, my field looks like below.
But if I change the time in 1 minute steps for example 22:12 and save it it always turn to the next 5 minute step.
datetime:
width: 1/2
label: Time
type: date
time:
- step: 1
required: true
Do you have an idea what is wrong?
I can reproduce it with the above syntax, if I change it to
datetime:
width: 1/2
label: Time
type: date
time:
step: 1
it works.