How can i change the date format of the news?

  • fiddleus
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 8 months ago #28373 by fiddleus
How can i change the date format of the news from mm.dd.yyy (04.15.2013) to dd.mm.yyyy (15.04.2013)?

Thanks!

Please Log in to join the conversation.

More
11 years 8 months ago #28384 by ivan.milic
in langugaes/xx-XX/xx-XX.ini

in one of this change value of format

DATE_FORMAT_LC
DATE_FORMAT_LC1
DATE_FORMAT_LC2
DATE_FORMAT_LC3
DATE_FORMAT_LC4
DATE_FORMAT_JS1

where xx-XX in language, for English its en-GB

Please Log in to join the conversation.

More
11 years 6 months ago #30852 by mixj2o
Hello,

Actually I need to know the same. In J3.1 you can change the date format settings using overrides.

Extensions > Language Manager > Overrides

Then click "New"

But the problem is, I've changed all these :
Code:
DATE_FORMAT_LC DATE_FORMAT_LC1 DATE_FORMAT_LC2 DATE_FORMAT_LC3 DATE_FORMAT_LC4 DATE_FORMAT_JS1

But the date format is still wrong on the news?

Please can someone help?

Thanks!

Please Log in to join the conversation.

More
11 years 6 months ago #30853 by mixj2o
Sorted it..

Find /templates/hot_wine/html/mod_articles_news/_item.php

Edit line 12 in "_item.php"

FROM:
Code:
<?php echo '<div class="newsflash_date">'.JText::sprintf(JHtml::_('date',$item->created, JText::_('m. d. Y'))).'</div>';?>

TO:
Code:
<?php echo '<div class="newsflash_date">'.JText::sprintf(JHtml::_('date',$item->created, JText::_('d. m. Y'))).'</div>';?>

Please Log in to join the conversation.

Time to create page: 0.179 seconds
Powered by Kunena Forum