Project

General

Profile

Actions

Bug #80022

closed

DateTime parse error on edit pages field newUntil

Added by Joerg Kummer over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2017-02-25
Due date:
% Done:

100%

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

Description

To reproduce

  1. Create or edit a page entry, open edit form
  2. Set date for "Mark as 'New' Until" (tab Appearance) to past or future
  3. Save your changes
  4. Reopen this page entry for editing (fx. select from page tree)
  5. 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;

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #78953: Custom FormDataProvider breaks with date related changesClosed2016-12-11

Actions
Related to TYPO3 Core - Task #80027: Remove TCA config 'max' on inputDateTime fieldsClosedThomas Hohn2017-02-26

Actions
Actions #1

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

Actions #2

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

Actions #3

Updated by Joerg Kummer over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

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.

Actions #5

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

Actions #6

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF