fixed absolute time calculation on mac and iOS