mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Use on-device date for cache
This commit is contained in:
parent
e599c34666
commit
6f3467a908
@ -205,7 +205,7 @@ class UnitsRepository @Inject constructor(
|
||||
.map { (pairId, pairValue) ->
|
||||
CurrencyRatesEntity(
|
||||
baseUnitId = unit.id,
|
||||
date = LocalDate.parse(conversions.date).toEpochDay(),
|
||||
date = LocalDate.now().toEpochDay(),
|
||||
pairUnitId = pairId,
|
||||
pairUnitValue = BigDecimal.valueOf(pairValue)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user