Email or username:

Password:

Forgot your password?
Top-level
Maksim Odnoletkov

@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?

3 comments
Niki Tonsky

@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

Maksim Odnoletkov

@nikitonsky see original scenario: "user fixes by adjusting system time manually"

Niki Tonsky

@odnoletkov Oh, yeah, but then HTTPS won’t work, so all good

Go Up