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

@ -16,6 +16,7 @@
- fixed #12015: Thingy: Custom 'File' form fields get deleted upon save
- fixed #11994: recurring calendar entries
- fixed #11995: recurring calendar entries in trash
- fixed #11986: Finance::Quote can give invalid dates to StockData asset
7.10.6
- fixed #11974: Toolbar icons unclickable in Webkit using HTML5

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;
}
#-------------------------------------------------------------------