Keyword

Date Time showing Jan 1 1970 for all items

  • Dave Sage
  • Dave Sage's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #56589 by Dave Sage
Hi,

I have just setup RSS feed reader and I have got the module working ok. However all the items are showing a date time of Jan 1 1970 | 01 01?

Would there be an obvious reason why the various dates are not being pulled from the feed correctly?

The example feed is from here: www.investegate.co.uk/Rss.aspx?company=DDDD

Output on screenshot attached - the system won;t let me attach an image

Cheers,

Dave

PS - cache has been flushed!

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #56590 by Lefteris
Replied by Lefteris on topic Date Time showing Jan 1 1970 for all items
Hi. Have you set a date format at the module settings ? If yes ensure that it is correct or set it blank so it reverts to it's default value.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Dave Sage
  • Dave Sage's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #56591 by Dave Sage
Replied by Dave Sage on topic Date Time showing Jan 1 1970 for all items
Hi,

Using the default value, I've also tried blanking it and saving to ensure the default is used - still no luck.

I had an issue with the current version only showing one item so installed the version from Github that Fotis mentioned here - www.joomlaworks.net/forum/simple-rss-feed-reader/15887-rss-feed-not-loading-more-then-one-item

This sorted the single entry.

The dates were showing wrong on both the current and Github versions.

I've also changed the format to be simply %Y and it is still showing just 1970.

Hope you can gelp,

Dave

Please Log in or Create an account to join the conversation.

  • Dave Sage
  • Dave Sage's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #56592 by Dave Sage
Replied by Dave Sage on topic Date Time showing Jan 1 1970 for all items
Hi Again,

I've just tested with the default feeds and it works, could it be the rss feed itself from this site as opposed to the module?

Could they have formatted the date entities or tags in a strange way?

www.investegate.co.uk/Rss.aspx?company=DDDD

They look correct in the browser but is the module not picking up the dates from their feed correctly?

Cheers for the help,

Dave

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #56593 by Lefteris
Replied by Lefteris on topic Date Time showing Jan 1 1970 for all items
Yes that seems to be the issue. The module uses PHP's strtotime function ( php.net/manual/en/function.strtotime.php ) to parse the date. It looks that it cannot parse what the feed provides.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Dave Sage
  • Dave Sage's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #56594 by Dave Sage
Replied by Dave Sage on topic Date Time showing Jan 1 1970 for all items
Ah, thought so.

The html version of the feed is showing '03 October 2014 10:53' as a date time. Is there any way of interrogating the feed coming into the module and seeing if the date/time can be parsed from this feed correctly?

It is fairly important I can get this working from this feed, any help would be much appreciated.

If I need to contribute as a specific development for this feed than I'm happy to do so,

Cheers,

Dave

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #56597 by Lefteris
Replied by Lefteris on topic Date Time showing Jan 1 1970 for all items
No. There is nothing that can be done on our part. The feed needs to change. The date that the feed provides is in this form: "03 Oct, 2014 10:53:55" . It's "pubDate" tag in the XML source.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Dave Sage
  • Dave Sage's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #56601 by Dave Sage
Replied by Dave Sage on topic Date Time showing Jan 1 1970 for all items
Thanks for the reply.

Is there any way of getting that <pubDate> string from the feed and into the module as it is in some other way?

I'll contact them to see if they can change their feed to a more standard one but I don't hold out much hope to them changing their feed.

Thanks again,

Dave

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #56603 by Lefteris
Replied by Lefteris on topic Date Time showing Jan 1 1970 for all items
No, you need to either create a proxy for the feed or hack the module with custom code.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum