How can I force Zope to accept german date format in input fields
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
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="text" name="Datum:date" size="35" value="<dtml-var ZopeTime fmt="%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üßen, DI Jürgen R. Plasser Gesellschafter plasser@hexagon.at Tel.: +43 / 732 / 640 530 DW 40 HEXAGON EDV-Dienstleistungen Hosiner OEG A-4221 Steyregg Weissenwolffstraße 14 Tel.: +43 / 732 / 640 530 Fax: +43 / 732 / 640 530 - 20 http://www.hexagon.at info@hexagon.at Bankverbindung: Allg. Sparkasse OÖ, BLZ: 20320, Kto.-Nr.: 1900003623 Firmenbuchnummer: FN 167631t Firmenbuchgericht: Handelsgericht Linz
Hi Jürgen, 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="text" name="Datum:date" size="35" value="<dtml-var ZopeTime fmt="%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üßen, DI Jürgen R. Plasser Gesellschafter
plasser@hexagon.at Tel.: +43 / 732 / 640 530 DW 40
HEXAGON EDV-Dienstleistungen Hosiner OEG A-4221 Steyregg Weissenwolffstraße 14 Tel.: +43 / 732 / 640 530 Fax: +43 / 732 / 640 530 - 20 http://www.hexagon.at info@hexagon.at
Bankverbindung: Allg. Sparkasse OÖ, 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 )
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 <dirk.datzert@tks-rasselstein.thyssenkrupp.com> wrote:
Hi Jürgen,
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="text" name="Datum:date" size="35" value="<dtml-var ZopeTime fmt="%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üßen, DI Jürgen R. Plasser Gesellschafter
plasser@hexagon.at Tel.: +43 / 732 / 640 530 DW 40
HEXAGON EDV-Dienstleistungen Hosiner OEG A-4221 Steyregg Weissenwolffstraße 14 Tel.: +43 / 732 / 640 530 Fax: +43 / 732 / 640 530 - 20 http://www.hexagon.at info@hexagon.at
Bankverbindung: Allg. Sparkasse OÖ, 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üßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://www.keyserver.net/en/
Hi Dirk, I just changed the following lines in DateTime.py (and hope not to have forgotten anything, the first tests seem to work properly): from: 981 else: 982 day=ints[1] 983 month=ints[0] to: 981 else: 982 day=ints[0] 983 month=ints[1] If somebody sees problems with my changes or there have to be made some other corrections please tell me. Juergen --On Mittwoch, 03. Juli 2002 16:06 +0200 Dirk Datzert <dirk.datzert@tks-rasselstein.thyssenkrupp.com> wrote:
Hi Jürgen,
can you sent your changes to the mailing-list. I have the same problem, but no solution.
Hi Jürgen, I think that will fix it on your system. Is it a standalone where only germans will enter the date , or is it a multilanguage system with multiple input formats of date ? I think that we should a fix for that step by step. Maybe it is a good idea to take this discussion to the ZIP mailing-list ? Maybe Stephan Richter is listing here also ? Regards, Dirk "Juergen R. Plasser / Hexagon" schrieb:
Hi Dirk,
I just changed the following lines in DateTime.py (and hope not to have forgotten anything, the first tests seem to work properly):
from:
981 else: 982 day=ints[1] 983 month=ints[0]
to:
981 else: 982 day=ints[0] 983 month=ints[1]
If somebody sees problems with my changes or there have to be made some other corrections please tell me.
Juergen
--On Mittwoch, 03. Juli 2002 16:06 +0200 Dirk Datzert <dirk.datzert@tks-rasselstein.thyssenkrupp.com> wrote:
Hi Jürgen,
can you sent your changes to the mailing-list. I have the same problem, but no solution.
Hi Dirk! We use it for an intranet crm tool and only germans (exactly austrians ;-) enter dates. So I think my fix will be sufficient in this case. Besides that I would appreciate a multilingual solution anyway but I had to fix it very quick and had no time to get into the code. Regards, Juergen --On Mittwoch, 03. Juli 2002 18:54 +0200 Dirk Datzert <dirk.datzert@tks-rasselstein.thyssenkrupp.com> wrote:
Hi Jürgen,
I think that will fix it on your system. Is it a standalone where only germans will enter the date , or is it a multilanguage system with multiple input formats of date ?
I think that we should a fix for that step by step. Maybe it is a good idea to take this discussion to the ZIP mailing-list ? Maybe Stephan Richter is listing here also ?
Regards, Dirk
participants (3)
-
Dirk Datzert -
Joachim Schmitz -
Juergen R. Plasser / Hexagon