All questions about EDocman extension

EDOCMAN Stats (Admin) change date format

  • Berna Tulay
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #137880 by Berna Tulay
EDOCMAN Stats (Admin) change date format was created by Berna Tulay
Hello,

where and how can I change the date format (Created) for EDOCMAN Stats (Admin)?
I have a wrong time display (e.g. 17/09/2020 - 16:Sep).

Many thanks in advance,

Greetings

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

More
4 years 2 months ago #137957 by Mr. Dam
Replied by Mr. Dam on topic EDOCMAN Stats (Admin) change date format
Hi Berna,
Currently, Edocman is using this date format:
Code:
l, d F Y H:i
through Joomla language constant
Code:
DATE_FORMAT_LC2
through code:
Code:
echo JHtml::_('date', $row->created_time, JText::_('DATE_FORMAT_LC2'));

in file: root -> administrator -> components -> com_edocman -> view -> dashboard -> tmpl -> default_latest.php, default_hits.php, default_download.php

And you can change that language constant by below constants:
Code:
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_LC5="Y-m-d H:i" DATE_FORMAT_LC6="Y-m-d H:i:s" DATE_FORMAT_JS1="y-m-d" DATE_FORMAT_CALENDAR_DATE="%Y-%m-%d" DATE_FORMAT_CALENDAR_DATETIME="%Y-%m-%d %H:%M:%S" DATE_FORMAT_FILTER_DATE="Y-m-d" DATE_FORMAT_FILTER_DATETIME="Y-m-d H:i:s"
Thanks
Dam

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

Moderators: Mr. Dam