A bug in has_date()