Project

General

Profile

Actions

Bug #79411

closed

TCA eval => 'date' fails with error

Added by Jens Engelmann over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-01-22
Due date:
% Done:

0%

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

Description

Any TCA field with the "date" (not datetime) eval function (e.g. the archive field of tx_news) fails when saving with the following error:

DateTime::__construct(): Failed to parse time string (2017-01-22T14:37:13+) at position 19 (+): Unexpected character

As you can see the form value for the date is missing the timezone information the PHP DateTime class needs. It might be a problem with the datepicker library.

Workaround: register own eval function and readd timezone information.

Actions

Also available in: Atom PDF