handle None in relative_time