Rename the internal date_formats function to not shadow hook_date_formats. Oops :-)