RSS page, topic created 1.1.1970

For some reason, the creation date is displayed as 1970. 🙂 Although the database says
20-08-2011.

Here is the code

echo "<?xml version=\"1.0\" encoding=\"windows-1251\"?>
<rss version=\"2.0\">
<channel>
<title>    </title>
<link>http://draw-art.ru</link>
<description>             </description>
<language>ru</language>";
echo "<item>".
        "<title>".strip_tags($myrow['title'])."</title>".
        "<link>http://draw-art.ru/blog_look.php?id=".$myrow['id']."</link>".
        "<description><![CDATA[".$myrow['description']."]]></description>".
        "<pubDate>".date("r",$myrow['date'])."</pubDate>".
        "<guid>http://draw-art.ru/blog_look.php?id=".$myrow['id']."</guid>".
        "</item>";

Answer 1, authority 100%

Apparently, $myrow['date']is not a Unix time and is therefore 0.

Try or modify the request

SELECT *, UNIX_TIMESTAMP(date) as udate

and output date("r",$myrow['udate'])

Or translate already in the code:

date('r', strtotime($myrow['date']))