use the DateTime object when comparing dates in ExhcnageRateCalculator
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good

This commit is contained in:
Bence Pőcze 2023-05-06 13:41:17 +02:00
parent ea579614b3
commit b2babcf30f
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -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;