UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

date preference in archive module

Ineke Huibregtse · ·
2:54 PM Tuesday, 10 May 2016
Normal
Hello,
Yesterday I asked about using the publication date in the easyblog modules for latest blogs and archive.
I needed to replace this:

<?php echo $post->getCreationDate(true)->format($params->get('dateformat', JText::_('DATE_FORMAT_LC3'))); ?>


with:

<?php echo $post->getPublishDate()->format($params->get('dateformat', JText::_('DATE_FORMAT_LC3'))); ?>


This worked for the latest blog module with one problem: If I set the publication date to 8 May at 00:01 o'clock, the component says 8 May, but the latest blog module says 7 May, as if it's in a different time zone. When I set the time to 02:00 o'clock, also the module says 8 May. (01:30 still gives 7 May)

In de archive module I couldn't find the code as mentioned. How can I adjust the archive module in order to show the publication date?

Best,
Ineke
The replies under this section are restricted to logged in users or users with an active subscription with us