bkrztuk wrote:It is one of the way but what amount of offset you need ? The -12/+12 was not working ? Maybe it was cache issue and you need to wait until you can see results.
It's not a cache issue. I've done a little search in the code and i've found this:
- Code: Select all
AND ( content.publish_up = '.$db->Quote($nullDate).' OR content.publish_up <= '.$db->Quote($now).' )
at line 174 in /mod_news_pro_gk4/gk_classes/gk.source.joomla.php
At this line the $db->Quote($now) has a not really specific $now variable, which is assigned here:
- Code: Select all
$date = JFactory::getDate($config['time_offset'].' hour '.date('Y-m-d', strtotime('now')));
$now = $date->toSql();
at line 106, 107 in the same PHP
You can see the problem at the date() function. Hour:Minute:Second format is not set. Joomla publish articles with a timestamp not just a date. Change date('Y-m-d', strtotime('now')) to
date('Y-m-d H:i:s', strtotime('now')) and the articles will appear.