Make sure that the StockData asset doesn't die when handling various date formats. Fixes bug #11986.

This commit is contained in:
Colin Kuskie 2011-01-03 17:59:58 -08:00
parent a083737ab3
commit cb7ffb3a21
2 changed files with 3 additions and 1 deletions

View file

@ -167,7 +167,8 @@ sub _convertToEpoch {
}
$hour = $self->_appendZero($hour);
$minute = $self->_appendZero($minute);
return $self->session->datetime->humanToEpoch("$year-$month-$day $hour:$minute:00");
my $epoch = eval {$self->session->datetime->humanToEpoch("$year-$month-$day $hour:$minute:00")};
return $epoch;
}
#-------------------------------------------------------------------