Skip to content

Instantly share code, notes, and snippets.

@Akii
Created March 12, 2015 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akii/a5eb4d3b41d6e6d1f098 to your computer and use it in GitHub Desktop.
Save Akii/a5eb4d3b41d6e6d1f098 to your computer and use it in GitHub Desktop.
$messageMappingConf = $this->arguments['newMessage']->getPropertyMappingConfiguration(); // there should be a getArgument as well
//$messageMappingConf->allowProperties('examdate'); shouldn't be needed
$messageMappingConf->forProperty('examdate')->setTypeConverterOption(
'TYPO3\CMS\Extbase\Property\TypeConverter\DateTimeConverter',
\TYPO3\CMS\Extbase\Property\TypeConverter\DateTimeConverter::CONFIGURATION_DATE_FORMAT,
'd/m/Y'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment