[SOLVED] Wrong time in frontpage

Advanced newspaper or magazine Joomla template to build news website with unique and detailed design.
GK User
Tue Mar 29, 2011 5:41 am
Hi, I am not quite sure but i think this is a new one. I am not sure if it is happening for a long time now, from the begining or not.

What I saw today is that the creation dates in the articles (category blog layout) is following the clock on the right up of the page. That only happens in a very specific link of my menu - in the front page -. Other links (pages) that show bloglayout content from othercategories appear fine.

The time when I click an article (on that article) is OK.

Do you think is something I did by mistake is it a bug or ?... :S

Update: Problem page: http://www.propontida.gr/portal/
User avatar
Junior Boarder

GK User
Tue Mar 29, 2011 5:54 pm
Please check your server time settings it is the place from Joomla take present time.
User avatar
Platinum Boarder

GK User
Tue Mar 29, 2011 6:32 pm
Server time is ok. The time showing on the right up corner is also ok.
User avatar
Junior Boarder

GK User
Thu Mar 31, 2011 8:05 pm
Anyone? :(
User avatar
Junior Boarder

GK User
Thu Mar 31, 2011 8:49 pm
Hi

I see what you mean.
We will take a look on this issue and get back to you.

Cheers ;)
User avatar
Platinum Boarder

GK User
Thu Mar 31, 2011 9:33 pm
The following change should fix the problem.

Please open this file:
../gk_twn/html/com_content/frontpage/default_item.php

find this fragment:

Code: Select all
<div class="date">
         
            <?php if (intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) : ?>
            <span class="modified">
               <strong><?php echo str_replace("%s","",JText::_('LAST_UPDATED2')); ?></strong>
               <?php echo JText::sprintf(JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2'))); ?>
            </span>
            <?php endif; ?>
         
            <?php if ($this->params->get('show_create_date')) : ?>
            <span class="created">
               <?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')) ?>
            </span>
            <?php endif; ?>
            
            </div>


replace it with

Code: Select all
<div class="date">
         
            <?php if (intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) : ?>
            <span class="modified">
               <strong><?php echo str_replace("%s","",JText::_('LAST_UPDATED2')); ?></strong>
               <?php echo JText::sprintf(JHTML::_('date', $this->item->modified->modified, JText::_('DATE_FORMAT_LC2'))); ?>
            </span>
            <?php endif; ?>
         
            <?php if ($this->params->get('show_create_date')) : ?>
            <span class="created">
               <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
            </span>
            <?php endif; ?>
            
            </div>


This will be release on next update.

Thank you for the report.

Cheers ;)
User avatar
Platinum Boarder

GK User
Fri Apr 01, 2011 6:37 am
omg it works!! Thank you sooooo much for your kind help! :) Cheers! :D
User avatar
Junior Boarder

GK User
Sun Apr 03, 2011 1:40 pm
Hi,i have a same problem with mystore template.
User avatar
Fresh Boarder

GK User
Sun Apr 03, 2011 1:53 pm
probleme solved i replaced

<?php if ($this->item->params->get('show_create_date')) : ?>
<?php $article_time = strtotime($this->item->created); ?>
<span class="createdate-day">
<?php echo date("j",$article_time); ?>
</span>
<span class="createdate-month-year">
<?php echo date("M, Y", $article_time); ?>
</span>
<?php endif; ?>
in
k_mystorehtmlcom_contentcategoryblog_item.php
with
<?php if ($this->item->params->get('show_create_date')) : ?>
<span class="createdate">
<?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')); ?>
</span>
<?php endif; ?>
User avatar
Fresh Boarder


cron