×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Wrong date in the RSS feed

Wrong date in the RSS feed 13 years 9 months ago #11652

  • Jörg Schmidt
  • Jörg Schmidt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Hallo,
i have just one little problem on a page I have made: In the RSS feed of hotspots is a wrong date. All added hotspots have the date 1. Januar 1970 00:00 and not the date of the posting. Maybe it's just a little bug, which could be changed easily.

Here is a link to the website:
http://www.leerstand-frankfurt.de/

And to the RSS feed:
http://www.leerstand-frankfurt.de/component/hotspots/?task=rss

Wrong date in the RSS feed 13 years 8 months ago #11658

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Jörg,
Yep it is a bug. It will be fixed in the next version. If you cannot wait, then go to components/com_hotspots/utils.php

Around line 394 you will find this code:
$rss_item->date = JHTML::Date($row->postdate);
change it to:
$rss_item->date = JFactory::getDate($row->postdate)->toRFC822();

The rss file had the correct date, but because the date hast to comply with the RFC822 standard:
asg.web.cmu.edu/rfc/rfc822.html
the rss readers were showing the date as 1970...
Cheers,
Daniel

P.S. Don't forget to delete the rss cache in media/com_hotspots/rss after you make the change.
P.S.1 And if you haven't already done so - please write a review in the jed :)
  • Page:
  • 1
Time to create page: 0.104 seconds