TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #72053
Issue Feature Closed

#72053Extbase: Support \DateTimeInterface instead of \DateTime

Sebastian Michaelsen 12/04/15, 09:40 updated 05/07/19, 12:25

Open in Forge Comment in Forge

Description

Extbase supports conversion from and to \DateTime objects in several situations. But you cannot work with \DateTimeImmutable or other implementations of the \DateTimeInterface.
Extbase should support working with the interface instead of the concrete class.

Reviews 3

  • 9.5 64132[BUGFIX] Do not perform string-with-boolean comparisons in switch cases Related to this issue Merged Georg Ringer CR +2 V +2 → main Easy +3 −4 04/10/20, 04:03
  • main 64113[BUGFIX] Do not perform string-with-boolean comparisons in switch cases Related to this issue Merged Volker Diels-Grabsch CR +2 V +2 → 9.5 Easy +3 −4 04/10/20, 03:29
  • main 57388[BUGFIX] Respect DateTimeImmutable in Extbase Resolves this issue Merged Benni Mack CR +2 V +2 Normal +208 −14 11/05/18, 15:37

Related issues 2

  • Bug #73637Extbase DateTimeConverter cannot handle negative timestamps Related to Closed Extbase v6.2 Felix Althaus 02/23/16, 23:32
  • Bug #90992Fix programming error that only works for subtle reasons Related to Closed v9 Volker Diels-Grabsch 04/09/20, 19:23
Parent task
#77562 Misbehaviors with datetime values and timezones
Author
Sebastian Michaelsen
Priority
Should have
Category
Extbase
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback