plodos Posted February 15, 2009 Share Posted February 15, 2009 .sql `rdate` datetime NOT NULL COMMENT 'registration date', with this input '2009-02-12 04:28:08' <?php $timestamp = strtotime($opstr['rdate']); $date = date('D, j M Y H:i:s', $timestamp); echo " <item> <title>".$opstr['sname']." ".$opstr['year']." - ".$opstr['name']." </title> <description>".$opstr['city'].", ".$opstr['country']." - ".$opstr['cdate']."</description> <link>".$opstr['link']."</link> <pubDate>".$date."</pubDate> </item>"; ?> RSS is not showing the time. I didnt apply the corrent time ? Validator is giving this error : line 13, column 34: pubDate must be an RFC-822 date-time: Thu, 12 Feb 2009 04:28:08 Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 15, 2009 Share Posted February 15, 2009 Just use 'r' as the date() format specifier to get the correct RFC format. Quote Link to comment Share on other sites More sharing options...
plodos Posted February 15, 2009 Author Share Posted February 15, 2009 sorry but I didnt get it.... what does 'r' stand for ? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 15, 2009 Share Posted February 15, 2009 http://us3.php.net/date Quote Link to comment Share on other sites More sharing options...
plodos Posted February 15, 2009 Author Share Posted February 15, 2009 I just change the date variable like $date = date("r", strtotime($opstr["rdate"])); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.