Since we get a time_t for estimated end time, convert that to seconds left before setting remaining time. (cherry picked from commit ababd834)