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

This commit is contained in:
jocuri%softhome.net 2004-09-30 22:47:17 +00:00
Родитель fd79efa38d
Коммит adebf323b2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;