Page 1 of 1

Localised time of files and folders

Posted: 16 Mar 2024, 22:58
by lpatrick
Jan

I think if you add this to the admin/views/phocacommanderfilesa/view.json.php

Code: Select all

use Joomla\CMS\HTML\HTMLHelper;
And then change the dates for folder (277) and file (294) from

Code: Select all

	$o .= '<td class="ph-date">'.date('Y-m-d H:i', $v['date']).'</td>';
to

Code: Select all

	$o .= '<td class="ph-date">'.HTMLHelper::date($v['date'],'Y-m-d H:i:s').'</td>';
Then the modified time should be correct according to the user's (Administrator) locale settings.

Hope I'm not wrong. Seems to work for me.

Re: Localised time of files and folders

Posted: 18 Mar 2024, 17:27
by Jan
Hi, thank you for the info, I will take a look at it for the next version.

Jan