[TYPO3-mvc] Validate DateTime and customizing of flashMessages

Boris Meier borismeier at gmail.com
Tue Jan 12 21:54:13 CET 2010


No, that's absolutely what I want: I want to check the date, so I have to check it with a wrong input. Everything is all right when I take a correct date. But I want to show the user a proper error-message and not the complicated exception?

I hope my question is now clearer...




Am 12.01.2010 um 21:49 schrieb Andreas Rieser:

> 
> 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
> 
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list