Keyword

[SOLVED] Extra Fields Formatting Issue...

More
10 years 6 months ago #122039 by Lefteris
Replied by Lefteris on topic Re: [SOLVED] Extra Fields Formatting Issue...
@Alfonso F. Moreno

Since you are using a custom format you don't need to use the JText. So the code will be like that:
<?php echo JHTML::_('date', $this->item->extraFields->fechainicio->value , 'Y-m-d'); ?>

Ensure that you are using a valid format that PHP can handle www.php.net/manual/en/datetime.formats.date.php .

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

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

  • Alfonso F. Moreno
  • Alfonso F. Moreno's Avatar
  • Offline
  • Elite Member
More
10 years 6 months ago #122040 by Alfonso F. Moreno
Replied by Alfonso F. Moreno on topic Re: [SOLVED] Extra Fields Formatting Issue...
Ok, I have changed it:
Log in  or Create an account to join the conversation.

More
10 years 6 months ago #122041 by Lefteris
Replied by Lefteris on topic Re: [SOLVED] Extra Fields Formatting Issue...
Which Joomla!/PHP versions are you using? Maybe the warning is coming from another piece of code in your page and not the specific file you have tweaked.

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

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

  • Alfonso F. Moreno
  • Alfonso F. Moreno's Avatar
  • Offline
  • Elite Member
More
10 years 6 months ago #122042 by Alfonso F. Moreno
Replied by Alfonso F. Moreno on topic Re: [SOLVED] Extra Fields Formatting Issue...
Joomla 2.5.19 K2 2.6.8 and PHP 5.3.2

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

More
10 years 6 months ago #122043 by Lefteris
Replied by Lefteris on topic Re: [SOLVED] Extra Fields Formatting Issue...
I am pretty sure that the error comes from another part of your page ( maybe a K2 module ?). Try to disable some modules temporarily to detect which one needs to be altered.

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

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

  • Alfonso F. Moreno
  • Alfonso F. Moreno's Avatar
  • Offline
  • Elite Member
More
10 years 6 months ago #122044 by Alfonso F. Moreno
Replied by Alfonso F. Moreno on topic Re: [SOLVED] Extra Fields Formatting Issue...
No, I have disabled ALL the modules assigned to that menu and still happens the same. Otherwise, I have found a temporary solution.

I don´t Know why it works if I do a language override of K2_DATE_FORMAT_LC with "Y-m-d" and create one new override K2_DATE_FORMAT_LC3 with "l, d F Y". Then, I change PHP to:

Log in  or Create an account to join the conversation.

More
10 years 6 months ago #122045 by Lefteris
Replied by Lefteris on topic Re: [SOLVED] Extra Fields Formatting Issue...
Obviously something was wrong with the translation of K2_DATE_FORMAT_LC. Also note that if you are under a Windows server some language modifiers are not supported.

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

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