Merge pull request 'use the DateTime object when comparing dates in ExhcnageRateCalculator' (!49) from bugfix/fix-current-exchange-rate-calculation into master

Reviewed-on: #49
This commit is contained in:
bence authored and Gitea committed 2023-05-06 13:44:09 +02:00
commit d76a9c44c4
1 file changed
+1 -1
+1 -1
View File
@@ -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;