Timestamp of Logging data

Phoca Download - download manager
User avatar
Shigeto
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Oct 2020, 04:51

Timestamp of Logging data

Post by Shigeto »

Hi,

I use PhocaDownload 3.2.0 and Joomla 3.9.22.
Phoca Download Configuration > General > Enable Logging > if 'Yes', logging data is recorded into database.
But this timestamp is UTC.

My site is;
Global Configuration > Server > Website Time Zone > 'Asia/Tokyo',
I hope logging data that displayed would be refer to website time zone.

Best regards
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Timestamp of Logging data

Post by Jan »

Hi, try to open this file:

administrator/components/com_phocadownload/views/phocadownloadlogs/tmpl/default.php

and on line cca 113 change FROM:

Code: Select all

echo $r->td($this->escape($item->date));
TO:

Code: Select all

echo $r->td($this->escape(JFactory::getDate($item->date)));
and let me know if this is OK.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Shigeto
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 21 Oct 2020, 04:51

Re: Timestamp of Logging data

Post by Shigeto »

Hi, Jan.

I tried your suggestion, but nothing occurred.
Timestamp had no change.

Best Regards,
Post Reply