Keyword

[SOLVED] Weird date display on all items

  • Kevin Fisher
  • Kevin Fisher's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago - 12 years 1 month ago #102262 by Kevin Fisher
[SOLVED] Weird date display on all items was created by Kevin Fisher
After migrating my site to a new server suddenly all my dates above my items have a weird format and illegible dates.

I am running Joomla 2.5.6, have reinstalled with the latest version 2.5.7 again, cleared cache, etc and the issue remains.

For example, instead of the correct date: "Monday, August 20, 2012"

It reads: "K2_FriPMUTCE_August+0000RAugPMUTC_1C1"

What the heck is that?!

You may view here: tinyurl.com/969fe4g

I have searched and have been unable to find any mention of this issue. Please help!!!

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #102263 by Lefteris
Replied by Lefteris on topic Re: Weird date display on all items
Hi. Maybe your template overrides are using the Joomla! 1.5 date format. Try to view with a clear template by appending "?template=atomic" to the URL.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Kevin Fisher
  • Kevin Fisher's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #102264 by Kevin Fisher
Replied by Kevin Fisher on topic Re: Weird date display on all items
Your idea was correct! When I view the blog with "?template=atomic" at the end of the URL the dates show correct. So how do I fix it so the dates show in J 2.5 date format?!

Please Log in or Create an account to join the conversation.

  • Kevin Fisher
  • Kevin Fisher's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #102265 by Kevin Fisher
Replied by Kevin Fisher on topic Re: Weird date display on all items
I figured it out. I compared the original K2 files in components/com_k2/templates/default to the template override files in my template directory.

I could see that for some reason my template override files were using the date format:
<?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC1')); ?>

instead of what was in the original files:
<?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>

So I changed the "LC1" to "LC2" at the end of that date format text and it worked. Then, I actually changed it to just "LC" since I did not want the time to show.

Thanks for pointing me in the right direction!

Please Log in or Create an account to join the conversation.

More
12 years 1 month ago #102266 by Lefteris
Replied by Lefteris on topic Re: Weird date display on all items
You are welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum