Roman
February 7, 2021, 11:52pm
1
Pages are created from webform submission from frontend and I want to save date and time of submission.
Maybe the problem is with version - using 3.5.2-rc.1 and getting this:
In older 3.3.5 website I have blueprint:
date:
type: date
default: now
time: true
and time is saved, but with same code or even more settings - date and time is not saved:
date:
default: now
type: date
time: true
display: HH:mm
default: now
There’s an issue on GitHub:
opened 03:28PM - 24 Jan 21 UTC
Describe the bug
When creating a new page in the Panel, a date field with default set to now always shows 00:00...
I haven’t tried it yet, but a temporary workaround would probably be a page.create:after
hook that updates the timestamp if time is 00:00 …I’m not 100% sure though whether that updated timestamp would appear in the panel field without refreshing the page.
The problem is still here (Getkirby 3.6.6):
I am using the following plugin to create a date field instead of title “kirby-plugin-custom-add-fields”
But your date field doesn’t seem to have time set?
exactly, I don’t want to set a time.
How to make hours, minutes and seconds not exist? It seems to be set by default.
even if I activate the time, in any case it takes into account the current time.
This requires removing the time from the url manually
another idea how to limit the number of characters in the url to 10?
Topic :
opened 03:28PM - 24 Jan 21 UTC
closed 06:44PM - 14 Dec 21 UTC
type: bug 🐛
**Describe the bug**
When creating a new page in the Panel, a date field with… `default` set to `now` always shows `00:00` as time.
**To Reproduce**
Steps to reproduce the behavior:
1. Install a fresh Starterkit and log in to the panel
2. Click "Add" for Notes to create a new note
3. See error: the time in the date field shows `00:00` (despite `default` set to `now` in the `note.yml` blueprint)
The error also persists when altering the blueprint as follows:
```
date:
type: date
time:
step: 1
display: HH:mm
default: now
default: now
```
**Expected behavior**
A time field with `time: true` and `default: now` would use the current time, either by default or at least when the time value is also set to `default: now`.
**Kirby Version**
3.5.1
**Console output**
No console output.
**Desktop:**
- OS: Linux Mint 19.3
- Browser: Firefox
- Version: 84.0.2