V
V
Valentin Melnik2018-11-09 11:06:00
Joomla
Valentin Melnik, 2018-11-09 11:06:00

How to change date format in Joomla 3.x?

How to change date format in Joomla 3.x?
On the main page, the date format is %Y-%m-%d %H:%M:%S
and on the remaining pages %d.%m.%Y %H:%M:%S
In the files ru_RU.ini b en_GB.ini there are no such formats.
The files that are responsible for the output of template/html materials also do not have such formats.
In the redefinition of constants, I changed the DATE_FORMAT_LC3 format and changed the date type for all pages except the main one.
Where to change for the main I can not find.
Where to look from where exactly pulls up the format? Or how it is possible to redefine for each separate page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentin Melnik, 2018-11-14
@Poincare

Redefined the date in the line that displays the date <?php echo JHtml::_('date', $item->created, 'dmY H:i'); ?>
Everything worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question