Issue Bug Closed

#97925Timezone of DateTime property behave different in TYPO3 10 and 11

Gernot Ploiner 07/13/22, 14:32 updated 05/22/26, 10:37

Description

I’m upgrading a project from TYPO3 8 to 11. There I discovered, that stored DateTime values (not timestamp) in the Database of my Extbase Extension are different in the Frontend:

Example:
DB: 2022-07-13 12:14:00
TYPO3 8.7 FE: 2022-07-13 14:14:00
TYPO3 11.5 FE: 2022-07-13 12:14:00

The value in the DB is in UTC timezone.
My Frontend (DDEV timezone) is set to Europe/Vienna (+2h in summertime).
It looks like, that TYPO3 11 does not respect the timezone and is showing also the wrong UTC timezone.

To reproduce:
  • Configure your server to Europe/Berlin timezone (e.g. in ddev in your config.yaml)
  • Install TYPO3 11.5
  • Install the small attached Extension for TYPO3 11 to see the Bug.
  • After installing insert the plugin on a page and open the frontend.
  • Create a new “Hour” entry in the expected format (see placeholder).
  • Click on the new item in the frontends listview to see the detailview. There is a formatted output with date and time.
  • Do the same procedure with TYPO3 10 and the other Extension attached. You see different time-values in your databases in tx_hour_domain_model_hour.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.