Keyword

date of rss item don't appear in browser

  • michel
  • michel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #135599 by michel
Hi
I relly don't understand why !
i choose "Feed item date & time to Show" but date don't appear in the code souce in the front side ( in html page ) .
i remove if($feedItemDate): but still have <span class="srfrFeedItemDate"></span>

i don't know if it relative to isset ? and PHP
I use Joomla! 2.5.8 + PHP 558

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

  • michel
  • michel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #135607 by michel

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #135612 by Krikor Boghossian
Replied by Krikor Boghossian on topic date of rss item don't appear in browser
Is it 2.5.8 or 2.5.28 ?
PHP 5.5 is fine.

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

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

  • michel
  • michel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago - 10 years 3 months ago #135709 by michel
Replied by michel on topic date of rss item don't appear in browser
hi
i have in joomla backend Site -> system information
-php 5.5.8
-joomla 2.5.8

there is 10 items with date locate at "h3 .lastUpdated"
perhaps the problem come from
-I have also a chrome module where php call title and content only .
-I use falang to have fr & en language

I think perhaps we need to define a new date format ?
i.imgur.com/DypD9LE.png
i.imgur.com/6qyh8AS.png


regard's
Last edit: 10 years 3 months ago by michel.

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

More
10 years 2 months ago #135917 by Lefteris
Replied by Lefteris on topic date of rss item don't appear in browser
@michel

Check the module settings for the date relevant options. Ensure that you have not used an invalid format in the date format option.

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

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

  • michel
  • michel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago - 10 years 2 months ago #135997 by michel
Replied by michel on topic date of rss item don't appear in browser
I copy my website ( OS files /directories + sql) from local to remote server and the date appear in this case .
The remote server use php 5.5.18. Thus i could say that local and remote setting are the same .
The issue must come from lower level : php version ?

regard's
Last edit: 10 years 2 months ago by michel.

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

More
10 years 2 months ago #136016 by Lefteris
Replied by Lefteris on topic date of rss item don't appear in browser
This could be a bug of the specific PHP version.

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

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

  • Inze A. Markogiannopoulos Th. ΟΕ
  • Inze A. Markogiannopoulos Th. ΟΕ's Avatar
  • Offline
  • New Member
More
10 years 1 month ago - 10 years 2 weeks ago #140656 by Inze A. Markogiannopoulos Th. ΟΕ
Replied by Inze A. Markogiannopoulos Th. ΟΕ on topic date of rss item don't appear in browser
Hello,

I have a problem like that.

here is my rss feed . I didn't managed to appear the date and time of publication even ifthere is the xml tag <pubDate> in source code.

When I also parse the above feed with this validator I get various issues.

My joomla version is 2.5.28 and k2 version is v2.6.9

it is a bug or something I doing wrong?
Last edit: 10 years 2 weeks ago by Inze A. Markogiannopoulos Th. ΟΕ. Reason: fix links

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 month ago #140659 by Krikor Boghossian
Replied by Krikor Boghossian on topic date of rss item don't appear in browser
The extension requires valid feeds to work as expected.
You can try burning this feed with Feedburner so you can have a valid feed.

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

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

  • Inze A. Markogiannopoulos Th. ΟΕ
  • Inze A. Markogiannopoulos Th. ΟΕ's Avatar
  • Offline
  • New Member
More
10 years 1 month ago #140734 by Inze A. Markogiannopoulos Th. ΟΕ
Replied by Inze A. Markogiannopoulos Th. ΟΕ on topic date of rss item don't appear in browser
Hello,

I already have burned the feed with feedburner but the same problem is happened .

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

More
10 years 1 month ago #140747 by Lefteris
Replied by Lefteris on topic date of rss item don't appear in browser
@Salmatas G. Kirtsidis Th. OE

The issue is on the feed generation not in the module. The generated feed contains date in Greek language which of course is invalid.

I saw that you are using K2 for generating the feeds. K2 does not modify the date. The issue probably occurs when Joomla! is trying to format the data before displaying the feed. Ensure that you are using an up to date version of Joomla!. Since you are under Joomla! 2.5 series you should be using 2.5.28.

If you already use the latest version then something is wrong with either your PHP version or your server's setup.

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

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

  • Inze A. Markogiannopoulos Th. ΟΕ
  • Inze A. Markogiannopoulos Th. ΟΕ's Avatar
  • Offline
  • New Member
More
10 years 1 month ago - 10 years 1 month ago #140837 by Inze A. Markogiannopoulos Th. ΟΕ
Replied by Inze A. Markogiannopoulos Th. ΟΕ on topic date of rss item don't appear in browser
Hello,

My joomla version is already on 2.5.28 and the k2 version on 2.6.9

Ok there is the <pubDate> (on the Greek language of course) in source code but why it doesn't appear on the feeds after burred on feedburner. Is also this "Greek" problem?

Can you indicate me the php joomla file that is responsible to format the data before display in the feed. I think that I translated the labels that use the feeds' php file...

Thank you in advance.
Last edit: 10 years 1 month ago by Inze A. Markogiannopoulos Th. ΟΕ. Reason: more comments

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

More
10 years 1 month ago #140851 by Lefteris
Replied by Lefteris on topic date of rss item don't appear in browser
I don't get what you are asking regarding feedburner. The date should not be in Greek, in any case. Regarding the actual code this where Joomla! is converting the date in feeds:
github.com/joomla/joomla-cms/blob/2.5.x/libraries/joomla/document/feed/renderer/rss.php#L209-L214

This is calling the Joomla! date format function:

github.com/joomla/joomla-cms/blob/2.5.x/libraries/joomla/utilities/date.php#L564-L567

Note that is strongly NOT recommended to modify any of the core Joomla! files.

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

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

  • Inze A. Markogiannopoulos Th. ΟΕ
  • Inze A. Markogiannopoulos Th. ΟΕ's Avatar
  • Offline
  • New Member
More
10 years 2 weeks ago - 10 years 2 weeks ago #142060 by Inze A. Markogiannopoulos Th. ΟΕ
Replied by Inze A. Markogiannopoulos Th. ΟΕ on topic date of rss item don't appear in browser
Hello,

I got the problem. In the github.com/joomla/joomla-cms/blob/2.5.x/libraries/joomla/utilities/date.php file there is the "dayToString" function that probably is involved and gets labels from en-GB.ini and el-GR.ini files. So, after I turned the labels in english into el-GR.ini file, the feed is validated. .

There are some minor mistakes in the text of feeds but is still valid. The problem now is that on the frontend the page renders the dates in english but the frontend laguage is set in Greek language
Last edit: 10 years 2 weeks ago by Inze A. Markogiannopoulos Th. ΟΕ. Reason: additional coments

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

More
10 years 2 weeks ago #142089 by Lefteris
Replied by Lefteris on topic date of rss item don't appear in browser
Use this code inside a template override:
<?php echo JHtml::_('date', $feed->itemDate, JText::_('DATE_FORMAT_LC2')));

Ensure that you have set the format in the module options to :
%Y-%m-%d %H:%M:%S

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