timecompare: fix half-Y2K38 problem in timecompare_update while calculating offset