Skip to content

Commit

Permalink
fix for deal expiry date
Browse files Browse the repository at this point in the history
  • Loading branch information
psuzn committed Aug 13, 2023
1 parent 7057b87 commit 4e51f0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AppDetailScrapper(
storeUrl = packageName,
category = combined.getValue(Value.GENRE) as String,
offerExpiresIn = combined.getValueOrNull<Int>(Value.OFFER_END_TIME)?.let {
OffsetDateTime.ofInstant(Instant.ofEpochMilli(it.toLong()), ZoneOffset.UTC)
OffsetDateTime.ofInstant(Instant.ofEpochSecond(it.toLong()), ZoneOffset.UTC)
}
)
}
Expand Down

0 comments on commit 4e51f0c

Please sign in to comment.