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

This commit is contained in:
bence committed 2023-05-06 13:41:17 +02:00
1 parent ea579614b3
commit b2babcf30f
1 file changed
+1 -1
+1 -1
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;