Commit 74d1dd74 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 262126: fix invalid date parsing; patch by me, r=kiko, a=justdave.

parent e23f186e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment