[Zope] How can I force Zope to accept german date format in input fields

Juergen R. Plasser / Hexagon plasser@hexagon.at
Wed, 03 Jul 2002 13:54:53 +0200


Hello!

I recently asked the same question in the german Zope mailing list 
zope-de@yahoogroups.de but did not get any answers. Maybe someone can help 
me here.

How can I force Zope to accept german date format (dd.mm.yyyy) in an input 
field?

If I enter 13.07.2002, the field becomes 2002/07/13 correctly (clear, there 
isn't 13th month), however, when I enter 12.07.2002, Zope makes 2002/12/07. 
When I enter an invalid date like 31.02.2002 (2002/02/31) Zope hangs and 
does not response (browser never get's ready). I use Zope 2.5.1 with Python 
2.1.3 on a linux2 box.

I already tried the command line parameter -L "de_DE", but without success.

The problem appears when I preset the value of a date property with the 
german date format like this:

<input type="text" name="Datum:date" size="35" value="<dtml-var ZopeTime 
fmt="%d.%m.%Y %H:%M">">

Any hints?

Regards,
Juergen