replaced ad-hoc solution with util.str_to_time() for consistency