Feature #29564

Change \TYPO3\FLOW3\Property\TypeConverter\DateTimeConverter in order to compose a DateTime property from two input fields

Added by Andreas Keßler almost 4 years ago. Updated over 3 years ago.

Status:Closed Start date:2011-09-08
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

0%

Category:Property
Target version:-
PHP Version: Complexity:
Has patch:No

Description

It should be able to set one \DateTime property from two inputs

<input type="text" name="event[date][date]" value="{event.date -> f:format.date(format:'d.m.Y')}" />
<input type="text" name="event[date][time]" value="{event.date -> f:format.date(format:'H:i')}"/>
<f:form.hidden name="event[date][dateFormat]" value="d.m.Y H:i" />

The changes could be made in \TYPO3\FLOW3\Property\TypeConverter\DateTimeConverter:121 and could look like this

$time = "";

if(isset($source['time']) && is_string($source['time'])) {
    $time = " ".$source['time'];
}

$dateAsString = $source['date'].$time; // original line 121

Related issues

duplicates TYPO3.Flow - Feature #27417: DateTime conversion support Resolved 2011-06-14

History

#1 Updated by Karsten Dambekalns almost 4 years ago

  • Tracker changed from Suggestion to Feature

#2 Updated by Karsten Dambekalns almost 4 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow

#3 Updated by Karsten Dambekalns almost 4 years ago

  • Category set to Property

#4 Updated by Bastian Waidelich over 3 years ago

  • Status changed from New to Closed
  • Assigned To set to Bastian Waidelich
  • Has patch set to No

This was already implemented with #27417 (in changeset f8f3fc23121f5959203903cb672e987b4aca57b0)

Also available in: Atom PDF