- Posts: 24
- Thank you received: 0
Where can I change the time format?
-
racewolf
Inactive member -
Topic Author
- Member
-
Less
More
12 years 8 months ago - 12 years 8 months ago #20810
by racewolf
Replied by racewolf on topic Where can I change the time format?
I just Tried:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('%a, %d %b %Y'))); ?>
Not work
<?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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 8 months ago #20819
by ivan.milic
Replied by ivan.milic on topic Where can I change the time format?
try:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_($this->item->created, '%a, %d %b %Y')); ?>
<?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
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 8 months ago #20822
by racewolf
Tried, nothing changed.
Replied by racewolf on topic Where can I change the time format?
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
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 8 months ago - 12 years 8 months ago #20823
by racewolf
Replied by racewolf on topic Where can I change the time format?
I replace every line with your way:
but same result as before
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 8 months ago #20824
by ivan.milic
Replied by ivan.milic on topic Where can I change the time format?
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
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
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 8 months ago #20825
by racewolf
Replied by racewolf on topic Where can I change the time format?
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!
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