upstream fix in date_restrictions