Skip to content

Instantly share code, notes, and snippets.

@ctrl-freak
Created November 21, 2011 02:44
Show Gist options
  • Save ctrl-freak/1381458 to your computer and use it in GitHub Desktop.
Save ctrl-freak/1381458 to your computer and use it in GitHub Desktop.
Format MySQL DATETIME for RSS
<?
// See http://cyber.law.harvard.edu/rss/rss.html
date('D, d M Y H:i:s O', strtotime($item['pubDate']))
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment