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

Joachim Schmitz js@aixtraware.de
Wed, 03 Jul 2002 16:51:56 +0200


This problem has been solved many times already, last time it was about 6
month ago ;-(

I didn't find the patch right now.



--On Mittwoch, Juli 03, 2002 16:06:01 +0200 Dirk Datzert=20
<dirk.datzert@tks-rasselstein.thyssenkrupp.com> wrote:

> Hi J=FCrgen,
>
> can you sent your changes to the mailing-list.
> I have the same problem, but no solution.
>
> Thanks,
> Dirk
>
>
>
> "Juergen R. Plasser / Hexagon" schrieb:
>>
>> I just realized that my problems is located in the DateTime.py. I =
patched
>> 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"
>> <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 )
>>
>> --
>> 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
>>
>> _______________________________________________
>> 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 )
>
>
> _______________________________________________
> 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 )



Mit freundlichen Gr=FC=DFen                              Joachim Schmitz
--------------------------------------------------------------------
AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen
H=FCsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163
--------------------------------------------------------------------
Key fingerprint =3D DA10 CC82 62F8 1DBB 39A1  1EDC 725B 3317 A8D7 C3A6
Keyserver: http://www.keyserver.net/en/