Elxis CMS Forum

Extensions => Components => Topic started by: rentasite on February 12, 2015, 20:06:44

Title: Mikro showing only Date
Post by: rentasite on February 12, 2015, 20:06:44

Hi,

What changes should be done, in order Mikro component to show only the Date that an article was posted, instead of Date and Hour?

Thanks in advance
Title: Re: Mikro showing only Date
Post by: datahell on February 12, 2015, 20:16:50
Open file: components/com_mikro/views/public.html.php
Go to line: 178
Change the date format from DATE_FORMAT_4 to DATE_FORMAT_2 :

$date_str = $eDate->formatDate($row->created, $eLang->get('DATE_FORMAT_2'));
Title: Re: Mikro showing only Date
Post by: rentasite on February 12, 2015, 21:28:22
Thank you Yianni,

It still shows the hour for TODAY's or YESTERDAY's posts. Maybe it needs some changes above (on lines 174 & 176), but what exactly?

- - - - -

Note for anyone interested: Same change should be done for the "Latestarticles Module"

/modules/mod_latestarticles/mod_latestarticles.php
On line: 212
Change the date format from DATE_FORMAT_4 to DATE_FORMAT_2