[TYPO3-mvc] Validate DateTime and customizing of flashMessages

Andreas Rieser A.Rieser at T3site.com
Tue Jan 12 21:49:02 CET 2010


Am 12.01.2010 um 21:19 schrieb Boris Meier:
> In the yxzValidator the object is already created and therefore  
> before the validator starts, I get the exception: "Conversion to a  
> DateTime object is not possible. Cause: DateTime::__construct()  
> [datetime.--construct]: Failed to parse time string (01.01.19894)  
> at position 10 (4): Unexpected character"

I guess this was a no-brainer after some painfull hours of diving  
into extbase:

Failed to parse time string (01.01.19894) at position 10 (4):  
Unexpected character

That's absolutely correct - try 01.01.1989 instead of 01.01.19894    ;-)

I haven't implemented datetime yet and the posts on the list make me  
believe that there is some trouble in this area.
But maybe that's the point in the right direction in your case.

Good luck,
Andreas




More information about the TYPO3-project-typo3v4mvc mailing list