Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ class BiExchangeRateSource(
throw ExchangeRateSourceException("Unsuccessful response from BiApi for period $startDate..$date")
}

val nextDayTimestamp = date.plusDays(1).atStartOfDay().toEpochSecond(ZoneOffset.UTC)
log.info { "Exchange rates from bi have been retrieved, date=$date, exchangeRates=$rates, targetTimestamp=$nextDayTimestamp" }
val dayTimestamp = date.atStartOfDay().toEpochSecond(ZoneOffset.UTC)
log.info { "Exchange rates from bi have been retrieved, date=$date, exchangeRates=$rates, targetTimestamp=$dayTimestamp" }

return ExchangeRates(
rates = rates,
timestamp = nextDayTimestamp,
timestamp = dayTimestamp,
)
}

Expand Down
Loading