Make sure that the StockData asset doesn't die when handling various date formats. Fixes bug #11986.
This commit is contained in:
parent
a083737ab3
commit
cb7ffb3a21
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue