Bug #80022
closedDateTime parse error on edit pages field newUntil
100%
Description
To reproduce
- Create or edit a page entry, open edit form
- Set date for "Mark as 'New' Until" (tab Appearance) to past or future
- Save your changes
- Reopen this page entry for editing (fx. select from page tree)
- Click save+close button, without any changes
Expected result
Frame with edit form switches to the view you had opened before
Actual result
An error occurs
DateTime::__construct(): Failed to parse time string (2017-02-25T00:00:00+) at position 19 (+): Unexpected character
Field value is cutting from 25 chars (in this case) down to 20 chars:
$GLOBALS['TCA']['pages']['columns']['newUntil']['config']['max'] = 20;
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51859
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51859
Updated by Joerg Kummer over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 317b6da4ab1c82e9b4d9b559006c375bb0d239b4.
Updated by Catalin Ilie over 7 years ago
I noticed that using DCE content elements with TYPO3 8.5.1 will trigger this same error when i try to save the DCE content element at editing. I could resolve this by removing the same 'max'=>20 in typo3\sysext\frontend\Configuration\TCA\tt_content.php where the date field is defined.
Updated by Joerg Kummer over 7 years ago
TCA for tt_content.date has been changed with #79440 a month ago. Its solved in current TYPO3 v8.6.1
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed