Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix bad conversion
James Colebdba78632243
diff --git a/app/Support/Http/Api/ExchangeRateConverter.php b/app/Support/Http/Api/ExchangeRateConverter.phpindex ae1871bf31..674259b34f 100644--- a/app/Support/Http/Api/ExchangeRateConverter.php+++ b/app/Support/Http/Api/ExchangeRateConverter.php@@ -124,7 +124,7 @@ class ExchangeRateConverterprivate function getRate(TransactionCurrency $from, TransactionCurrency $to, Carbon $date): string{if($this->isPrepared && !$this->noPreparedRates) {- Log::debug(sprintf('Return fallback rate from #%d to #%d on %s.', $from, $to, $date));+ Log::debug(sprintf('Return fallback rate from #%d to #%d on %s.', $from->id, $to->id, $date->format('Y-m-d')));return $this->fallback[$from->id][$to->id] ?? '0';}// first attempt: