[Zope] Invalid Date-Time String

Dieter Maurer dieter@handshake.de
Tue, 8 Jul 2003 20:25:31 +0200


Pascal Samuzeau wrote at 2003-7-8 10:53 +0100:
 > I've written :                                                        
 >                                                                       
 > <form ...>                                                            
 > <input name="created:date" size="20" value="1971/01/01">              
 > </form>                                                               
 >                                                                       
 > Under my web page I'm able to change the value of my input tag (it's  
 > doing for it...)                                                      
 >                                                                       
 > Well, but if I clean the field of my input I've this error :          
 >                                                                       
 > "Invalid Date-Time String"                                            
 >                                                                       
 > This is due to the filtered "created:date".                           
 >                                                                       
 > So How to avoid a such problem and not raise a Zope error?            

An empty string is an invalid date string.
Thus, Zope's behaviour is correct.

This has been discussed several times. The mailing list archives
will provide details.


Dieter