getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

`default: now` on date field with `time: true` doesn't return proper time #3842

Closed GiantCrocodile closed 2 years ago

GiantCrocodile commented 2 years ago

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Create a field like this:
          test_date:
            label: Test Date Field
            type: date
            time: true
            default: now
            disabled: true
            required: true
  2. Create a page with this blueprint field
  3. Check the content of the field (it's 2021-10-23 00:00)

Expected behavior Field should contain 2021-10-23 23:54 and not 2021-10-23 00:00

Expected behavior is described here: https://getkirby.com/docs/reference/panel/samples/blog#single-article__result

Kirby Version
v3.6 rc1

Desktop (please complete the following information):
Windows 10, latest Firefox

Additional context
multilang site

GiantCrocodile commented 2 years ago

Could be the same as https://github.com/getkirby/kirby/issues/3106 although no step attribute maintained here; so could be 2 different issues.

bastianallgeier commented 2 years ago

It's the same.