rfc822 isn't available in 1.9.3, changed to strftime for compatability