PDA

View Full Version : Date problem



Aleksandar Apostolovski
November 24, 2018, 11:36 AM
Hello,
I have a problem with showing the date on the news box when having 2 languages.
The English version is ok and it shows 23 Nov, but the Macedonian shows 23 ??? (for the month).
Can someone help me, I would like the date to be shown like this: 23.11.2018

Aleksandar Apostolovski
November 24, 2018, 11:52 AM
I found the code in /templates/auto_flatty/tpl/blocks/news_block.tpl and changed to this:

<div class="date">
{$news.Date|date_format:'%d'}.{$news.Date|date_for mat:'%m'}.{$news.Date|date_format:'%Y'}
</div>

This made the date format as I wished.