[TYPO3-mvc] <f:format.date> shows "could not be parsed by DateTime constructor. " in the FE

Stephen Bungert stephen at bungert.co.uk
Sat Jul 10 23:11:47 CEST 2010


I have the following template for my show action:

<p>Theatre Cal Show Test</p>
<h2 class="title">{items.title}</h2>
<p class="date"><f:format.date>{items.datetime}</f:format.date></h2>

In the FE I see the title ok, but where the date should go I see:

"1278740610" could not be parsed by DateTime constructor.

I tried googling but every example I find for <f:format.date>

<f:format.date>{object.dateProperty}</f:format.date>

What could be the cause of this?

Here is my items tca array for the field datetime:


		'datetime' => array(
			'exclude' => 1,
			'label'   => 
'LLL:EXT:theatre_cal/Resources/Private/Language/locallang_db.xml:tx_theatrecal_domain_model_items.datetime',
			'config'  => array(
				'type' => 'input',
				'size' => 12,
				'max' => 20,
				'eval' => 'datetime, required',
				'default' => time(),
			)
		),


More information about the TYPO3-project-typo3v4mvc mailing list