mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +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) ->
|
.map { (pairId, pairValue) ->
|
||||||
CurrencyRatesEntity(
|
CurrencyRatesEntity(
|
||||||
baseUnitId = unit.id,
|
baseUnitId = unit.id,
|
||||||
date = LocalDate.parse(conversions.date).toEpochDay(),
|
date = LocalDate.now().toEpochDay(),
|
||||||
pairUnitId = pairId,
|
pairUnitId = pairId,
|
||||||
pairUnitValue = BigDecimal.valueOf(pairValue)
|
pairUnitValue = BigDecimal.valueOf(pairValue)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user