@nikitonsky to show relative time like that you need to compare local and remote times – that would not work when local time is way off
Top-level
@nikitonsky to show relative time like that you need to compare local and remote times – that would not work when local time is way off 5 comments
@nikitonsky your `System.currentTimeMillis` is off by 1hr. You have `post.timestamp` which is correct. How do you render label like 'posted 5 min ago' properly? @odnoletkov No, System.currentTimeMillis is never off by an hour, regardless of timezone. In fact, it doesn’t even change when you change time zones |
@odnoletkov way off from what? It’s just local time!