Project

General

Profile

Actions

Bug #97925

open

Timezone of DateTime property behave different in TYPO3 10 and 11

Added by Gernot Ploiner over 2 years ago. Updated over 2 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2022-07-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Files

hour.zip (27.2 KB) hour.zip TYPO3 10 Extension Gernot Ploiner, 2022-07-13 14:31
hour.zip (27 KB) hour.zip TYPO3 11 Extension Gernot Ploiner, 2022-07-13 14:31

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #91240: Extbase DateTime with native dbType=datetime converts output differentlyClosedBenni Mack2020-04-30

Actions
Actions

Also available in: Atom PDF