Use correct time to get formatted time.