mozilla-services/android-sync — comment on commit 6ffb7d72f1c3c5195390e6d3360faea56220a7de
File: src/main/java/org/mozilla/gecko/sync/net/SyncResponse.java line 155
By rnewman:

Rather than computing now, use

return (int)(date.getTime() - System.currentTimeMillis());