Review main Merged

64053[BUGFIX] Do not convert native DATETIME values in Extbase

Benni Mack CR +2 V +2 Normal +60 −44 updated 09/15/20, 11:33

Commit message

In contrast to the actual documentation in the code, when using
RDBMS native DATE / TIME / DATETIME fields, the RDBMS does not
adjust these field's values for time zone.
Independent of the actual time zone the DMBS (or the current
session) is using, the data is stored and retrieved "as is".

The only thing that matters is the TZ of PHP, which must be
identical for storing and retrieving the data, otherwise
data is modified.

TYPO3 works just fine like that in Backend, however Extbase'
DataMapper considered the timezone of these fields as "UTC-stored",
which is wrong.

This patch corrects this behaviour to match the rest of the Core.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 3