Modification Date

Phoca Download - download manager
gena.sim69
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Sep 2019, 11:43

Modification Date

Post by gena.sim69 »

Tell me where you can fix the output of the modification date format?
My date is displayed like this:
Date: 12. Sep 2019

Must be: 12 September 2019

Example: https://cashfront.net/en/download/categ ... l-business
User avatar
Kostelano
Phoca Member
Phoca Member
Posts: 45
Joined: 23 May 2019, 20:47

Re: Modification Date

Post by Kostelano »

You probably have a constant overridden DATE_FORMAT_LC3.

Default constant:

Code: Select all

DATE_FORMAT_LC3="d F Y"
displays the date as you need: 12 September 2019.

Check file with constant:
SITE/language/en-GB/en-GB.ini or override the constant in the admin panel.
gena.sim69
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Sep 2019, 11:43

Re: Modification Date

Post by gena.sim69 »

Thanks for the advice. But there I have it right.
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".......
Here it is necessary to check in the component, probably.
https://cashfront.net/images/tmp/cf1909.jpg
User avatar
Kostelano
Phoca Member
Phoca Member
Posts: 45
Joined: 23 May 2019, 20:47

Re: Modification Date

Post by Kostelano »

Temporary solution.
You can manually make changes, but after the update you will have to repeat the procedure.

In administrator/components/com_phocadownload/libraries/phocadownload/file/file.php to find:

Code: Select all

public static function getFileTime($filename, $function, $format = "d. M Y") {
And replace the date format in the string with:

Code: Select all

d F Y
gena.sim69
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Sep 2019, 11:43

Re: Modification Date

Post by gena.sim69 »

This is what I need. Thank you very much!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modification Date

Post by Jan »

Hi, changed to: DATE_FORMAT_LC3 in version 3.2.0

https://www.phoca.cz/news/1072-phoca-do ... 0-released

Jan
If you find Phoca extensions useful, please support the project
Post Reply