Keyword

[SOLVED] Update to Joomla 3.1.5 breaks the date

  • Gregor
  • Gregor's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118376 by Gregor
Hi

I noticed, that after upgrading Joomla from 3.0.2, my K2 items on frontpage "lost" date format

Before update they were like 10, February 2013

and now, after update of Joomla there is only "10"

my site

Thank you

P.s. i'm also struggling with "famous" "remove component/k2" thing. I read ALL topics on net, tried everything .. can't get rid of this two words in URL

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 2 weeks ago #118377 by Yiota
Replied by Yiota on topic Re: Update to Joomla 3.1.5 breaks the date
Maybe your language definition for the date you were using in your K2 was entered in the default en-GB.ini language file which got overwritten once you updated.
Could you locate the definition you were using if not the default one and try locating it in the language files?

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

  • Gregor
  • Gregor's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118378 by Gregor
Replied by Gregor on topic Re: Update to Joomla 3.1.5 breaks the date
I'm not sure if I understood it right, but these are language definitions

sl_Sl.ini
DATE_FORMAT_LC="l, d F Y "
DATE_FORMAT_LC1="l, d F Y "
DATE_FORMAT_LC2="l, d F Y H:i "
DATE_FORMAT_LC3="d F Y "
DATE_FORMAT_LC4="Y-m-d "
DATE_FORMAT_JS1="y-m-d "

sl_Sl.com_k2.ini
K2_DATE_FORMAT="%d/%m/%Y - %H:%M"
K2_DATE_FORMAT_LC2="%A, %d %B %Y %H:%M"
K2_DATE_FORMAT_LC="%A, %d %B %Y"

so i don't see what could be a problem

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 2 weeks ago #118379 by Yiota
Replied by Yiota on topic Re: Update to Joomla 3.1.5 breaks the date
No, sorry I didn't explain it better.

In your overrides, if you use any, I need you to locate the definition used. For example, in the category_item.php file you should find something like
<?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>

What do you see in your file instead of the K2_DATE_FORMAT_LC2 ?

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

  • Gregor
  • Gregor's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118380 by Gregor
Replied by Gregor on topic Re: Update to Joomla 3.1.5 breaks the date
<?php if($this->item->params->get('catItemDateCreated')): ?>
		<!-- Date created -->
		<span class="catItemDateCreated">
			<?php echo JHTML::_('date', $this->item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
		</span>
		<?php endif; ?>

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 2 weeks ago #118381 by Yiota
Replied by Yiota on topic Re: Update to Joomla 3.1.5 breaks the date
This seems to be an issue with your template.
Check this URL: www.balonarstvo.com/new/?template=system the date loads fine there.
Check in templates/Your_template/html/com_k2/default/category_item.php for the previous definition. Is it the same with the one you posted, i.e. K2_DATE_FORMAT_LC2?

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

  • Gregor
  • Gregor's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118382 by Gregor
Replied by Gregor on topic Re: Update to Joomla 3.1.5 breaks the date
Masterpiece

THANK YOU A LOT FOR QUICK AND SUPERB HELP!

now it works like a charm.

regards

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


Powered by Kunena Forum