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

Reviewed-on: 
This commit is contained in:
Bence Pőcze 2023-05-06 13:44:09 +02:00 committed by Gitea
commit 361671a362
Signed by: Gitea
GPG Key ID: 7B89B83EED9AD2C6

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