Page 1 of 1

Wrong hour in upload view

Posted: 07 Feb 2015, 15:37
by berenger
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

Re: Wrong hour in upload view

Posted: 08 Feb 2015, 01:02
by Jan
Hi, can you paste a screenshot (e.g. per imgur) where exactly the time is displayed different?

Thank you, Jan

Re: Wrong hour in upload view

Posted: 08 Feb 2015, 13:04
by berenger
Hello Jan

I posted the screenshot on Imgur: http://i.imgur.com/zfhAfcQ.jpg. Hope you can help me.

Regards

Pierre

Re: Wrong hour in upload view

Posted: 12 Feb 2015, 01:09
by Jan
Hi, in:

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>';
TO:

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>';
Jan