[Zope] Invalid Date-Time String

Pascal Samuzeau samuzeau@oreka.com
Tue, 08 Jul 2003 15:54:20 +0100


Hi Andreas,                                                           
                                                                      
I'm sorry to tell you that under Zope 2.6.0, it doesn't work any more.
                                                                      
So you can tell me what you've have done to work fine with you        
                                                                      
I repeat :                                                            
                                                                      
<form action="Search">                                                
 <input name="created:date" size="20" value="1971/01/01">             
</form>                                                               
                                                                      
Under the DTMLMethod "Search", I have the fisrt line:                 
<dtml-return REQUEST>                                                 
                                                                      
And believe me I have the error:                                      
                                                                      
************************************                                  
Error Type: Invalid Date-Time String                                  
Error Value:                                                          
************************************                                  
                                                                      
So my question , again, how to get it before it raises this error.    
                                                                      
Thanks                                                                
PS                                                                    
                                                                      
-------------------                                                   
>                                                                     
>                                                                     
> --On Dienstag, 8. Juli 2003 10:53 Uhr +0100 Pascal Samuzeau         
> <samuzeau@oreka.com> wrote:                                         
>                                                                     
> > Hi,                                                               
> >                                                                   
> > 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?        
>                                                                     
> Works for me.                                                       
>                                                                     
> -aj                                                                 
>                                                                     
>                                                                     
Cordialement                                                          
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com