From: | Michael Schindler <michael [...] compressconsult.com> |
To: | "'gbarr [...] pobox.com'" <gbarr [...] pobox.com> |
Subject: | Date::Parse perl module |
Date: | Thu, 6 Jun 2002 18:24:59 +0200 |
hi!
bugzilla has a bug which could be tracked to Date::Parse module.
URL: http://bugzilla.mozilla.org/show_bug.cgi?id=148609
thanks for writing the module!
michael
Description: Opened: 2002-06-02 03:27
The string '2002-6-1' is not a legal date. This is what Bugzilla says. 2002-6-01
is, though. So the month may be one digit, the day not.
pi
------- Additional Comment #1 From Michael Schindler 2002-06-06 09:22 -------
this is a problem in Date::Parse perl module.
suggest setting to ontfix and forwarding to gbarr@pobox.com
the relevant lines:
# Date: 12-12-96 (using '-', '.' or '/' )
elsif ($dtstr =~ s#\s(\d\d*)([\-\./])(\d\d?)(\2(\d\d+))?\s# #o) {
second line should be:
elsif ($dtstr =~ s#\s(\d\d*)([\-\./])(\d\d?)(\2(\d\d*))?\s# #o) {
(there is an asterix instead of the plus close to the end)