No Code Attached Yet bug
avatar C-Lodder
C-Lodder
18 May 2020

Steps to reproduce the issue

I've attempted to upload an image via the Manage Manager at exactly 16:45 BST (British Summer Time) on my localhost.

Once uploaded, I checked the Date Created value shown in the Media Manager, which is displaying 15:45 (1 hour before).

I then went to the Global Configuration and change the website timezone to London, which in turn then shown an upload time of 17:45

avatar C-Lodder C-Lodder - open - 18 May 2020
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 May 2020
avatar chmst
chmst - comment - 18 May 2020

confirmed. I have uploaded a file ar 21:29 - tmezone berlin - and see 23:49.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29134.

avatar brianteeman
brianteeman - comment - 4 Sep 2022

Do you get the exact same time when you create an article?

avatar Fedik
Fedik - comment - 5 Sep 2022

It still valid issue.
It happen because we do not use DB, but Filesystem time which is unix timestamp, and then transform it to timezone in Joomla.
And becauase: unix timestamps do not handle timezones, we get incorrect result (see warning).

$createDate = $this->getDate(filectime($path));
$modifiedDate = $this->getDate(filemtime($path));

// Dates
$obj->create_date = $createDate->format('c', true);
$obj->create_date_formatted = HTMLHelper::_('date', $createDate, Text::_('DATE_FORMAT_LC5'));
$obj->modified_date = $modifiedDate->format('c', true);
$obj->modified_date_formatted = HTMLHelper::_('date', $modifiedDate, Text::_('DATE_FORMAT_LC5'));

avatar Hackwar Hackwar - change - 20 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 20 Feb 2023

Add a Comment

Login with GitHub to post a comment