Keyword

displaying the date in different language

  • ss_ebr
  • ss_ebr's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago - 11 years 3 months ago #53079 by ss_ebr
Hi all,

First of all, thanks to the joomlaworks team for this slick and nice piece of work! It was just the kind of modul I wanted and it worked right out of the box!

I've searched the forum to try to find out how to format date and time, but without any success.  :(

If you want the RSS feed items date to be displayed in your language instead of English, just modify mod_jw_srfr.php line 176 :

original (displays the date in English) :

echo $item->get_date('j M Y | g:i a'); // Local timezone

modified (displays the date in the language defined by your Joomla template) :
echo $item->get_local_date(); // Local timezone

I found that function in the SimplePie documentation at simplepie.org/wiki/tutorial/translate_timestamps_into_another_language



I use "Simple RSS Feed Reader V.3 for joomla 2.5 ) but this method does not work.
I would like to have the date like "1436.03.22" in in arabic language .
Any help would be greatly appreciated...

Thanks

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


Powered by Kunena Forum