Issue Bug Closed

#79411TCA eval => 'date' fails with error

Jens Engelmann 01/22/17, 14:46 updated 10/02/18, 11:02

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.

Reviews 0

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