Where can I change the time format?

  • racewolf
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 8 months ago - 12 years 8 months ago #20810 by racewolf
I just Tried:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('%a, %d %b %Y'))); ?>

Not work :(
Last edit: 12 years 8 months ago by racewolf.

Please Log in to join the conversation.

More
12 years 8 months ago #20819 by ivan.milic
try:

<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_($this->item->created, '%a, %d %b %Y')); ?>

Please Log in to join the conversation.

  • racewolf
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 8 months ago #20822 by racewolf

ivan.milic wrote: try:

<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_($this->item->created, '%a, %d %b %Y')); ?>


Tried, nothing changed.

Please Log in to join the conversation.

  • racewolf
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 8 months ago - 12 years 8 months ago #20823 by racewolf
I replace every line with your way:
Code:
<?php if ($params->get('show_create_date')) : ?> <dd class="create"> <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_($this->item->created, '%a, %d %b %Y')); ?> </dd> <?php endif; ?> <?php if ($params->get('show_modify_date')) : ?> <dd class="modified"> <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_($this->item->created, '%a, %d %b %Y')); ?> </dd> <?php endif; ?> <?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_($this->item->created, '%a, %d %b %Y')); ?> </dd> <?php endif; ?>

but same result as before
Last edit: 12 years 8 months ago by racewolf.

Please Log in to join the conversation.

More
12 years 8 months ago #20824 by ivan.milic
no,no I looked thread from beginning , that is k2 article and what you edit is for regular joomla content.
Also k2 ini file should be named like en-GB.com_k2.j25.ini or en-GB.com_k2.j16.ini . Try their forum

Please Log in to join the conversation.

  • racewolf
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 8 months ago #20825 by racewolf
Yes, I'm using K2 article and categories with this theme.

You design this theme, you know the architecture well, if I ask the K2 forum, their must tell me asking back to you.

I can modify code by myself, I only need you help me find out which file I should edit.

Thank you!

Please Log in to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum