Fix add_time not working with a negative time, similarly for sub_time.