Skip to content

Commit

Permalink
Actually use the fetchTime to show the last fetched date
Browse files Browse the repository at this point in the history
  • Loading branch information
cristan committed Oct 27, 2024
1 parent 216a89b commit 42e3970
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DetailsViewModel(
val before = System.currentTimeMillis()
val details = client.getDetails(overviewModel.uri)
if (details == null) {
val fetchTimeInstant = Instant.ofEpochSecond(1719066494)
val fetchTimeInstant = Instant.ofEpochSecond(overviewModel.fetchTime)
val lastFetched = LocalDateTime.ofInstant(fetchTimeInstant, ZoneId.of("Europe/Amsterdam"))!!
_screenState.value = ScreenState.Loaded(DetailsContent.NotFound(overviewModel.title, lastFetched))
return
Expand Down

0 comments on commit 42e3970

Please sign in to comment.