Review main Ready for review

98074[FEATURE] Map request arguments to DateTimeImmutable

Alexander Schnitzler CR 0 V 0 Hard +323 −7 updated 11/26/26, 14:38

Commit message

Extbase persists and reconstitutes DateTimeImmutable properties and
the DateTimeValidator accepts them, but the property mapper could
only create DateTime objects. A DateTimeImmutable action argument or
property of a submitted object could not be mapped from the request.

The DateTimeConverter is now registered for DateTimeImmutable as
well and converts the same sources with the same options and errors.

Immutable dates are preferable for models: a DateTime modified in
place is not noticed when values are compared by identity, as
doctrine/orm does, while a replaced DateTimeImmutable is.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/74/98074/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/74/98074/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 6

Issues 1

Files 7

Review log 34

  1. Alexander Schnitzler uploaded patch set 1 11/26/26, 14:25

  2. Alexander Schnitzler wrote 11/26/26, 14:29

    Topic set to extbase
  3. core-ci voted on patch set 1 V +1 11/26/26, 14:33 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115578

  4. Alexander Schnitzler commented on patch set 1 11/26/26, 14:38