<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get MySQL date in RFC-822 format for RSS feeds</title>
	<atom:link href="http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sat, 21 Nov 2009 18:18:34 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marcello Orizi</title>
		<link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/comment-page-1/#comment-14416</link>
		<dc:creator>Marcello Orizi</dc:creator>
		<pubDate>Fri, 21 Aug 2009 10:07:52 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14416</guid>
		<description>Hi all,&lt;br&gt; to add the correct timezone formatted in RFC-822 format in Java I found this method. I don&#039;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 = &quot;Z&quot;;&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>
		<content:encoded><![CDATA[<p>Hi all,<br /> to add the correct timezone formatted in RFC-822 format in Java I found this method. I don&#39;t like it too much because it requires to call cal.getTime() everytime but it seems to do what needed.</p>
<p>import java.util.Calendar;<br />import java.text.SimpleDateFormat;</p>
<p>public class foo{<br />    public static final String DATE_FORMAT_RFC822_TIMEZONE = &#8220;Z&#8221;;</p>
<p>    public String getRFC822TimeZone() {<br />        Calendar cal = Calendar.getInstance();<br />        SimpleDateFormat sdf = new    SimpleDateFormat(DATE_FORMAT_RFC822_TIMEZONE);<br />        return sdf.format(cal.getTime()); <br />    }</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jannick Bolten</title>
		<link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/comment-page-1/#comment-13815</link>
		<dc:creator>Jannick Bolten</dc:creator>
		<pubDate>Mon, 27 Jul 2009 04:33:26 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13815</guid>
		<description>Thank you! I&#039;m using it :-)</description>
		<content:encoded><![CDATA[<p>Thank you! I&#39;m using it :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/comment-page-1/#comment-12101</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Thu, 04 Jun 2009 05:40:53 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12101</guid>
		<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&#039;t select the most recent.  To fix i did this:&lt;br&gt;&lt;br&gt;SELECT pubdate, DATE_FORMAT(pubdate,&#039;%a, %d %b %Y %T&#039;) AS rfcpubdate FROM tablename ORDERBY pubdate DESC&lt;br&gt;&lt;br&gt;very helpful indeed though</description>
		<content:encoded><![CDATA[<p>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&#39;t select the most recent.  To fix i did this:</p>
<p>SELECT pubdate, DATE_FORMAT(pubdate,&#39;%a, %d %b %Y %T&#39;) AS rfcpubdate FROM tablename ORDERBY pubdate DESC</p>
<p>very helpful indeed though</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/1461/get-mysql-date-in-rfc-822-format-for-rss-feeds/comment-page-1/#comment-3670</link>
		<dc:creator></dc:creator>
		<pubDate>Fri, 18 Jul 2008 21:20:02 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-3670</guid>
		<description>Don&#039;t use the php DATE(&#039;T&#039;) 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 &quot;British Summer Time&quot; which will not validate, where as GMT (grewnich mean time) does.

You have no idea how long it too me to twig what was wrong...

Tom</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use the php DATE(&#8217;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 &#8220;British Summer Time&#8221; which will not validate, where as GMT (grewnich mean time) does.</p>
<p>You have no idea how long it too me to twig what was wrong&#8230;</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>
