use the DateTime object when comparing dates in ExhcnageRateCalculator
rvr-nextgen/pipeline/pr-master This commit looks good
rvr-nextgen/pipeline/pr-master This commit looks good
This commit is contained in:
1 file changed
+1
-1
@@ -41,7 +41,7 @@ class ExchangeRateCalculator
|
||||
|
||||
$currentExchangeRate = null;
|
||||
foreach ($this->exchangeRates[$currency->getId()] as $exchangeRate) {
|
||||
if ($exchangeRate->getValidFrom() > $time) {
|
||||
if ($exchangeRate->getValidFromDate() > $time) {
|
||||
break;
|
||||
}
|
||||
$currentExchangeRate = $exchangeRate;
|
||||
|
||||
Reference in new issue
Block a user