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 Link to comment https://forums.phpfreaks.com/topic/145246-solved-rfc-822-date-time-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/145246-solved-rfc-822-date-time-problem/#findComment-762460 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 ? Link to comment https://forums.phpfreaks.com/topic/145246-solved-rfc-822-date-time-problem/#findComment-762462 Share on other sites More sharing options...
PFMaBiSmAd Posted February 15, 2009 Share Posted February 15, 2009 http://us3.php.net/date Link to comment https://forums.phpfreaks.com/topic/145246-solved-rfc-822-date-time-problem/#findComment-762464 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"])); Link to comment https://forums.phpfreaks.com/topic/145246-solved-rfc-822-date-time-problem/#findComment-762486 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.