Invalid Date-Time String
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? Cheers PS -------------------------------------------------- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com
--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
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
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
participants (3)
-
Andreas Jung -
Dieter Maurer -
Pascal Samuzeau