summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-10-01 07:47:17 +0200
committerjocuri%softhome.net <>2004-10-01 07:47:17 +0200
commit74d1dd74e77dd4c64a5d8609852da54e5a3b9803 (patch)
tree3e40986b85fbcc629ef757ddf957b5a22d45fd30
parente23f186ee5534398e868fa0ba1b4382aded22f10 (diff)
downloadbugzilla-74d1dd74e77dd4c64a5d8609852da54e5a3b9803.tar.gz
bugzilla-74d1dd74e77dd4c64a5d8609852da54e5a3b9803.tar.xz
Patch for bug 262126: fix invalid date parsing; patch by me, r=kiko, a=justdave.
-rw-r--r--Bugzilla/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index 4660b374d..7ea9f02c9 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -158,7 +158,7 @@ sub format_time {
$hour = substr($time,8,2);
$min = substr($time,10,2);
}
- elsif ($time =~ m/^(\d{4})\.(\d{2})\.(\d{2}) (\d{2}):(\d{2})(:\d{2})?$/) {
+ elsif ($time =~ m/^(\d{4})[-\.](\d{2})[-\.](\d{2}) (\d{2}):(\d{2})(:\d{2})?$/) {
$year = $1;
$month = $2;
$day = $3;