Hi
On the upload screen on the front end, a wrong hour notification appears when a file is uploaded. The difference is exactly 1 hour: 13.00 instead of 14.00. On the back end, the hour notification is correct. The server timezone is set correctly. How can I display the correct time on the front end?
I'm using PD version 2.1.9 on Joomla!2.5.
Regards
Pierre
Wrong hour in upload view
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Wrong hour in upload view
Hi, can you paste a screenshot (e.g. per imgur) where exactly the time is displayed different?
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 07 Feb 2015, 15:27
Re: Wrong hour in upload view
Hello Jan
I posted the screenshot on Imgur: http://i.imgur.com/zfhAfcQ.jpg. Hope you can help me.
Regards
Pierre
I posted the screenshot on Imgur: http://i.imgur.com/zfhAfcQ.jpg. Hope you can help me.
Regards
Pierre
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Wrong hour in upload view
Hi, in:
components\com_phocadownload\views\user\tmpl\default_files.php
lince cca. 162
Try to change:
FROM:
TO:
OR TO:
Jan
components\com_phocadownload\views\user\tmpl\default_files.php
lince cca. 162
Try to change:
FROM:
Code: Select all
echo '<td align="center">'. $row->date .'</td>';
Code: Select all
echo '<td align="center">'. JFactory::getDate($item->date) .'</td>';
OR TO:
Code: Select all
$date = JFactory::getDate($item->date);
$date->setOffset($config->getValue('config.offset'));
echo '<td align="center">'. $date->toFormat().'</td>';
If you find Phoca extensions useful, please support the project