March 7, 2022, 7:10am
Don’t know if I made a mistake in my blueprint, but it seems like I cannot have an empty time if the time field is enable.
label: Date end
It’s for an event page, where sometime time are specified sometimes is not. Therefore this field should be empty if no time is specified, but in this case, it returns the current time.
March 17, 2022, 6:20am
Still not solved but in the meantime I remove the time option
time: false and manually add another field:
It’s sadly not so efficient since Kirby seems to have the ability to have time in the date field.
Should this be add in the github as a bug or a feature?
Yes, please report on GitHub, thank you!
March 17, 2022, 7:19am
Thanks for your reply. Issue added here:
07:18AM - 17 Mar 22 UTC
10:50AM - 18 Mar 22 UTC
As the title describe it, using the property `time` doesn't al
… low an empty time. It fallbacks in the current time or adds 0:00
To be empty instead of falling back on the current time or 0:00
## To reproduce
Add a date field with time property turned on
1. Add a date field in the panel
2. Turn on the time property
3. Add a date and time and save
4. Remove the time
6. Time is added back automatically
## Your setup
This issue has been posted in the kirby forum [here](https://forum.getkirby.com/t/date-doesnt-allow-empty-time/24913)
Edit: answer from GitHub by distantnative
It’s actually not a bug but intended. If you activate
time on a date
field, either the whole field is empty or it needs to have a time. Just an empty
time input with a set
date won’t work. If you need that use case, you should rather look at having separate date and time fields.
I don’t agree on that but that’s the way it is at the moment, hopefully we can see this field evolve into something more flexible.