Convert timestamps to integers to avoid one-second drift between displayed server time and remaining time.