Localised time of files and folders
Posted: 16 Mar 2024, 22:58
Jan
I think if you add this to the admin/views/phocacommanderfilesa/view.json.php
And then change the dates for folder (277) and file (294) from
to
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.
I think if you add this to the admin/views/phocacommanderfilesa/view.json.php
Code: Select all
use Joomla\CMS\HTML\HTMLHelper;
Code: Select all
$o .= '<td class="ph-date">'.date('Y-m-d H:i', $v['date']).'</td>';
Code: Select all
$o .= '<td class="ph-date">'.HTMLHelper::date($v['date'],'Y-m-d H:i:s').'</td>';
Hope I'm not wrong. Seems to work for me.