fix rfc2822 date parsing