#111434Date form element stores the time of submission
Description
The “Date” form element (native <input type="date">) submits a plain date,
but TYPO3\CMS\Form\Domain\Model\FormElements\Date configures the
DateTimeConverter with the format “Y-m-d”. DateTime::createFromFormat()
fills the missing time fields with the current time, so the resulting
DateTime carries the time of the request.
Example: submitting 2026-11-20 at 10:49 results in 2026-11-20 10:49:42.
With the SaveToDatabase finisher (default dateFormat “U”) this time ends
up in the record, e.g. in “starttime”.
The behaviour is inconsistent: if a DateRange validator is configured,
the validator calls modify(‘midnight’) on the value and the stored time
is 00:00:00. Without the validator it is the time of submission.
Expected: a date-only value is normalized to midnight (00:00:00).
Reviews 1
Related issues 1
History 25
-
Gerrit Code Review pushed patch set 1 for main to change 97608 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-13T11:01:27+00:00" > 11/13/26, 11:01 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97608 <span data-processor="relativetime" data-value="2026-11-13T11:05:00+00:00" > 11/13/26, 11:05 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97608 <span data-processor="relativetime" data-value="2026-11-13T11:05:13+00:00" > 11/13/26, 11:05 </span>
-
Josua Vogel changed Related to #85254 <span data-processor="relativetime" data-value="2026-11-13T11:08:42+00:00" > 11/13/26, 11:08 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-18T08:00:15+00:00" > 11/18/26, 08:00 </span>
Applied in changeset commit:a8c8e3af8e6daa22224c7838277a6a9561b73704.