Support

Akeeba Backup for Joomla!

#39044 formatting of dates on Manage Backups page seems to be changing randomly with new versions

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.3.2
PHP version
8.1
Akeeba Backup version
9.6.1

Latest post by nicholas on Friday, 02 June 2023 10:27 CDT

davidascher

Manage Backups page is reporting backup date/time in UTC although switch to report in Local Time is set to "Yes"

Different site - https://peaceactionme.org with Joomla 4.3.1 (as opposed to 4.3.2 for test.theribboninternational.org site), PHP 8.1, Akeeba Backup 9.6.1 is reporting backup times in LOCAL time (EDT). 

To be clear - the actual times reported are correct - on test.theribboninternal.org they are correctly reported in UTC BUT since the switch was set to "YES" for "Local Time in Manage Backups" they should be reported using local date/times.

on peaceactionme.org the times are correctly reported IN LOCAL TIME - as they should be because the "Local Time in Manage Backups" switch is set to "Yes".

 

Did this get broken by the update to 4.3.2 ? Or have I misunderstood something?

 

thanks

 

I just updated peaceactionme.org - the site that was acting correctly (as I understand it) to Joomla 4.3.2. It now has the same version of PHP 8.1.19 , Joomla 4.3.2, and Akeeba Backup 9.6.1 as the site test.theribboninternational.org and the same options settings ("Local Time in Manage Backups" is "Yes") which is reporting the date/time of backups on the Manage Backups page in UTC date/time.

 It would appear that J 4.3.2 is not the culprit here. Given that the versions of Joomla, PHP, and Akeeba Backup are identical, what be causing the difference in behavior - or more specifically, what could cause the test.theribboninternational.org site to report backup date/times in UTC rather than in Local Time as it is configured to do?

 

nicholas
Akeeba Staff
Manager

Have you checked that your logged in user has a timezone set up in their user profile? If not, the fallback is GMT.

Have you cleared Joomla's cache? Admin pages shouldn't be cached, but I can't know what any third party extension, hosting environment, or locally installed software may do.

Can Joomla display local times in any other page? If not, it's possible the server is misconfigured and can't use timezones. I have not seen it before (and I think the entire server would be borked), but one thing I've learned in two decades of doing support is that nothing is too improbable to eventually witness.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

davidascher

both sites are hosted on the same Shared Hosting server (Scalahosting) in the same account.

I checked each of them for the site time zone and it was set to "New York" on each of them.

I checked the user (me) setting for time zone and found that on the one reporting UTC times, my user time zone was set to "Default" (which should be the same as the server time zone is set to in Joomla - "New York" - right??)

I changed the user time zone setting on that site to "New York" and Manage Backups started reporting times in "ET" (what we very provincially call "Eastern Time").

On the site that was already reporting backup times in ET, I checked my user time zone setting and it was "New York". I changed that to "Default" and Manage Backups reported backup times in UTC. So I set it back to "New York".

I don't think this is how things worked in earlier versions of Joomla - but, of course, I may never have noticed before.

I have a site still running J3.10.6 and it seems that the behavior is the same. The time zone used to display the backup times is the user time zone unless the user time zone is set to “Default”. In that case, instead of using the site time zone, the backup times are displayed in UTC regardless of the site default time zone  - this is all assuming that the switch to display backup times in “Local Time” is set to “Yes” (which it is in all three of these sites).

That seems like a bug -not terribly serious but irritating at least.

nicholas
Akeeba Staff
Manager

my user time zone was set to "Default" (which should be the same as the server time zone is set to in Joomla - "New York" - right??)

Remember that Akeeba Backup's default timezone is UTC. The backups start time loaded from the database is expressed in that timezone. We then read the user's timezone as set in the user object and apply it for display purposes. If the user record does not a timezone we display dates and times in UTC, as we have always been doing. We never fall back to the site's timezone.

If you go to Components, Akeeba Backup, Options and click the Show/Hide Help button in the toolbar you will see that the inline help for the Use Local Time option tells you that enabling this option uses the user's timezone. We've had some back and forth with some users as to what that means when the user profile defines no timezone. To cut a long story short, due to the fact that historically we had been using UTC most people expected that not having selected a timezone for their user should make Akeeba Backup still display the backup times in UTC. I personally disagree with that, but there's a limit to how much fight I am willing to put for something trivial (and I will absolutely not add Yet Another Option for that, there are too many already).

I hope this clarifies the behaviour and the history behind it.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

davidascher

I should have turned on the help. I can now see that I was confused by one site displaying the backup times in local time while another displayed the backup times in UTC - and I didn't recall having set my user timezone to "New York".  After noticing that (unfortunately, after I'd posted this ticket) I saw that I could get all my sites to report backup times using local time by setting the user timezone to the local time. 

One suggestion involving no change in the behavior and no coding is to change "Local time in Manage Backups" to "User Time (if not "Default") in Manage Backups". I think this is a little less unclear than the current wording (in English anyway). I think it is also more likely to inspire a user to scratch their head and turn on the help text. 


I'd suggest also changing the help text from:

Should we translate the backup start time to the currently logged in user's timezone in the Manage Backups page? If set to No all backup start times appear in the GMT timezone. This option DOES NOT affect the [DATE] and [TIME] variables for backup file naming or the default description; Use the Backup timezone option to change how these variables work.

to 

Should we report the backup start time to the currently logged in user's timezone in the Manage Backups page?  If set to YES and the user's timezone is set to DEFAULT OR if set to No all backup start times are displayed in the GMT timezone.This option DOES NOT affect the [DATE] and [TIME] variables for backup file naming or the default description; Use the Backup timezone option to change how these variables work.

 

I gather from your last paragraph it sounds like you've been down this road before. Those relatively benign text message modifications would, I think, reduce the frequency with which you'd have to go over this old ground.

nicholas
Akeeba Staff
Manager

I gather from your last paragraph it sounds like you've been down this road before. Those relatively benign text message modifications would, I think, reduce the frequency with which you'd have to go over this old ground.

I have, indeed.

I will take a look at your suggestions and see how I can best integrate them in the software. The biggest problem is how to not cause a behaviour change which would startle all the other users who don't share your (correct, to be fair) assumption about how things should work.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!