<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Get MySQL date in RFC-822 format for RSS feeds | MySQL | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Fri, 21 Aug 2009 08:07:52 -0000</lastBuildDate><item><title>Re: Get MySQL date in RFC-822 format for RSS feeds | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/#comment-15188417</link><description>Hi all,&lt;br&gt; to add the correct timezone formatted in RFC-822 format in Java I found this method. I don't like it too much because it requires to call cal.getTime() everytime but it seems to do what needed.&lt;br&gt;&lt;br&gt;import java.util.Calendar;&lt;br&gt;import java.text.SimpleDateFormat;&lt;br&gt;&lt;br&gt;public class foo{&lt;br&gt;    public static final String DATE_FORMAT_RFC822_TIMEZONE = "Z";&lt;br&gt;    &lt;br&gt;    public String getRFC822TimeZone() {&lt;br&gt;        Calendar cal = Calendar.getInstance();&lt;br&gt;        SimpleDateFormat sdf = new    SimpleDateFormat(DATE_FORMAT_RFC822_TIMEZONE);&lt;br&gt;        return sdf.format(cal.getTime()); &lt;br&gt;    }&lt;br&gt;    &lt;br&gt;}</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">twitter-66114621</dc:creator><pubDate>Fri, 21 Aug 2009 08:07:52 -0000</pubDate></item><item><title>Re: Get MySQL date in RFC-822 format for RSS feeds | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/#comment-13375425</link><description>Thank you! I'm using it :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">twitter-15016956</dc:creator><pubDate>Mon, 27 Jul 2009 02:33:26 -0000</pubDate></item><item><title>Re: Get MySQL date in RFC-822 format for RSS feeds | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/#comment-10477038</link><description>Found this very helpful.  The only one thing I would say is that if you try and use ORDERBY rfcpubate DESC in the MYSQL query something weird happens and it doesn't select the most recent.  To fix i did this:&lt;br&gt;&lt;br&gt;SELECT pubdate, DATE_FORMAT(pubdate,'%a, %d %b %Y %T') AS rfcpubdate FROM tablename ORDERBY pubdate DESC&lt;br&gt;&lt;br&gt;very helpful indeed though</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Damian</dc:creator><pubDate>Thu, 04 Jun 2009 03:40:53 -0000</pubDate></item><item><title>Re: Get MySQL date in RFC-822 format for RSS feeds | MySQL | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/#comment-2770345</link><description>Don't use the php DATE('T') if your (tally ho chaps) british, in winter your feed will validate and general work fine, however in sping when day light savings time kicks in it will mysteriously break. PHP pust your timezone as BST or "British Summer Time" which will not validate, where as GMT (grewnich mean time) does.&lt;br&gt;&lt;br&gt;You have no idea how long it too me to twig what was wrong...&lt;br&gt;&lt;br&gt;Tom</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 18 Jul 2008 17:20:02 -0000</pubDate></item></channel></rss>