test date_to_rfc822