Changing the Date

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Sat Apr 23, 2011 2:34 pm
How do I change the date on this template - my computer date is set for 4/23/11 but it shows 21.

http://www.patwitter.com/20110411Postit/

Thanks
Pat Witter
User avatar
Fresh Boarder

GK User
Sun May 08, 2011 10:26 pm
:(
Been out of town, and was hoping for a response to this. My date is still showing 21 and it is now May 8. Can anyone tell me how to rectify this?

Thanks
Pat Witter
User avatar
Fresh Boarder

teitbite
Tue May 10, 2011 10:57 pm
Hi

This is showing the date of the article creation not the current date.
User avatar
Moderator

GK User
Tue Jul 12, 2011 7:54 pm
You can have the current date show in the BIG DATE on frontpage by drilling dow gk_postnote ---> html ---> com_content ---> category --- > blog item --->

NOW FIND THESE LINES OF CODE :

<div class="article-tools">
<?php if (($this->item->params->get('show_create_date'))) : ?>

<span class="createdate-day">
<?php echo JHTML::_('date', $this->item->created, '%d'); ?>
</span>

<span class="createdate-month">
<?php echo JHTML::_('date', $this->item->created, '%B'); ?>
</span>

CHANGE TO THIS
<div class="article-tools">
<?php if (($this->item->params->get('show_create_date'))) : ?>
<span class="createdate-day">
<?php echo JHTML::_('date', $today, '%d'); ?>
</span>

<span class="createdate-month">
<?php echo JHTML::_('date', $today, '%B'); ?>
</span>


HELPFUL HINT -- THE ONLY CODE YOU CHANGE IS IN THE <SPAN> TAG -- I PROVIDED THE <DIV> BEFORE THE CODE YOU NEED TO CHANGE TO HELP YOU FIND IT QUICKER...

Hope it helps.
User avatar
Fresh Boarder

GK User
Thu Jul 14, 2011 9:09 am
There is always way to use default blog layout by delete/change name this blog.item from template /html directory.
User avatar
Platinum Boarder


cron