Project

General

Profile

Actions

Bug #81719

closed

Epic #77562: Misbehaviors with datetime values and timezones

DateTime comparisons not possible in 8.7

Added by Uwe Michelfelder almost 7 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-06-27
Due date:
% Done:

0%

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

Description

Comparison based custom queries on DateTime values do not work anymore, because they do not get converted correctly in the Typo3DbQueryParser-> createTypedNamedParameter function.

There in line 501

$plainValue = $this->dataMapper->getPlainValue($value);

The value gets always converted to a Unix Timestamp, although in our case DateTime is used in the database and TCA.

The reason for this is, that in the getPlainValue method of the DataMapper, the second parameter "columnMap" is needed to convert the DateTime values to a string correctly.

Is related to #79473


Related issues 1 (1 open0 closed)

Is duplicate of TYPO3 Core - Bug #79473: Typo3DbQueryParser fails since Doctrine by comparing date fieldsNew2017-01-26

Actions
Actions

Also available in: Atom PDF