[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 15:31:21 +0200


I just realized that my problems is located in the DateTime.py. I patched=20
some lines of source and my problem was solved, thanx to OSS!

Juergen

--On Mittwoch, 03. Juli 2002 13:54 +0200 "Juergen R. Plasser / Hexagon"=20
<plasser@hexagon.at> wrote:

> 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=3D"text" name=3D"Datum:date" size=3D"35" value=3D"<dtml-var =
ZopeTime
> fmt=3D"%d.%m.%Y %H:%M">">
>
> Any hints?
>
> Regards,
> Juergen
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )



--=20
Mit freundlichen Gr=FC=DFen,
DI J=FCrgen R. Plasser
Gesellschafter

plasser@hexagon.at
Tel.: +43 / 732 / 640 530 DW 40

HEXAGON EDV-Dienstleistungen Hosiner OEG
A-4221 Steyregg
Weissenwolffstra=DFe 14
Tel.: +43 / 732 / 640 530
Fax: +43 / 732 / 640 530 - 20
http://www.hexagon.at
info@hexagon.at

Bankverbindung: Allg. Sparkasse O=D6, BLZ: 20320, Kto.-Nr.: 1900003623
Firmenbuchnummer: FN 167631t
Firmenbuchgericht: Handelsgericht Linz