I couldn’t find this for easy copy-pasting online so here it is:
In order for the dates in your RSS feed to validate they must comply with the RFC822 standard, but with a full four number year. To generate this in php you must pass the format string ‘D, d M Y H:i:s O’.
i.e.
date(‘D, d M Y H:i:s O’, <your timestamp>)
This outputs your timestamp in the format to match ‘Wed, 02 Oct 2002 15:00:00 +0200′



