Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
All questions about EDocman extension

Change dates format on document details

  • netenvie
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 3 months ago - 14 years 3 months ago #15019 by netenvie
Change dates format on document details was created by netenvie
Hi,

As said in title my goal is to change date format in document details view ...
I have look in configuration where there is a date format field but it don't change the way date are displayed in document details ...

Some idea to do that ?

Using Edocman 1.05 on Joomla 2.5.

Regards.
Last edit: 14 years 3 months ago by netenvie.

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
14 years 3 months ago #15020 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change dates format on document details
Right now, the date format is hardcoded . You can look at the file administrator/components/com_edocman/helpers/file.class.php, find the line of code :
Code:
return strftime( "%A %B %d, %Y %H:%M:%S", $date + ($offset*60*60) );

Change the date format to the format you want .

Regards,

Tuan

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

  • netenvie
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 3 months ago - 14 years 3 months ago #15021 by netenvie
Replied by netenvie on topic Re: Change dates format on document details
Ok. It work fine. Thx.

But i think it should be great to have this in configuration.
Because next component update will overwrite my changes ...

Regards.
Last edit: 14 years 3 months ago by netenvie.

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
14 years 3 months ago #15022 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change dates format on document details
The date format will be a config option in the next release :) .

Tuan

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

Moderators: Dang Thuc Dam