From aeadecf2c6418d5b8dc86fba1ab2d12ca196bb97 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" Date: Thu, 30 Sep 2004 22:47:33 +0000 Subject: [PATCH] Patch for bug 262126: fix invalid date parsing; patch by me, r=kiko, a=justdave. git-svn-id: svn://10.0.0.236/trunk@163047 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Util.pm b/mozilla/webtools/bugzilla/Bugzilla/Util.pm index 4660b374da9..7ea9f02c90e 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Util.pm +++ b/mozilla/webtools/bugzilla/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;