fix convert time from timedelta.