use the DateTime object when comparing dates in ExhcnageRateCalculator
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
This commit is contained in:
parent
ea579614b3
commit
b2babcf30f
@ -41,7 +41,7 @@ class ExchangeRateCalculator
|
|||||||
|
|
||||||
$currentExchangeRate = null;
|
$currentExchangeRate = null;
|
||||||
foreach ($this->exchangeRates[$currency->getId()] as $exchangeRate) {
|
foreach ($this->exchangeRates[$currency->getId()] as $exchangeRate) {
|
||||||
if ($exchangeRate->getValidFrom() > $time) {
|
if ($exchangeRate->getValidFromDate() > $time) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$currentExchangeRate = $exchangeRate;
|
$currentExchangeRate = $exchangeRate;
|
||||||
|
Loading…
Reference in New Issue
Block a user