Support

Akeeba Backup for Joomla!

#31494 Double Dateand description for Backup taken on in two languages

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Thursday, 04 July 2019 08:34 CDT

pk@klinke,de
Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:
At the list of backups the description and date of the backup is shown twice in 2 languages, german and english.

Β 

Sincerely

Peter

nicholas
Akeeba Staff
Manager
First go to Components, Akeeba Backup and click on Options, then Back-end. Check the "Date format". The default is
D j/n/Y H:i:s

If you have set up something different please try using the default.

On the same page you will see the Local time in Manage Backups. By default it's set to Yes. Keep that in mind for a minute.

All dates and times are internally stored in Akeeba Backup's database tables, just like everywhere else in Joomla, as GMT dates e.g. "2019-07-01 12:35:56" for June 1st 2019 12:35:56 pm GMT. When "Local time in Manage Backups" is set to Yes we pass that value into Joomla's JDate API and ask it to convert it to a human-readable thing that's localised for your current language which, in your case, it's German. Joomla's JDate will internally use the language-specific override code shipped with the Joomla language package in administrator/language/de-DE/de-DE.localise.php and the translation strings in administrator/language/de-DE/de-DE.ini. If any of these has a bug the localised date string will look weird. This is what I see happening in your case.

The problem is that I cannot reproduce it with Joomla 3.9.8 and the latest German language package. When using the default date format I see "Di 2/7/2019 09:20:36 EEST" which looks correct.

If you have the latest German language package, Joomla 3.9.8, the default Date Format I told you about and you still have this issue there is only one possibility: some third party plugin is overriding Joomla's JDate and making a damn mess out of it. I would start looking at translation extensions and their system plugins as potential culprits.

I hope this information helps!

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!

pk@klinke,de
Thank you, Nicholas.

Indeed, the date format was completely wrong. Now it looks nearly fine without the local time. The time is shown 2 hours back than local time zone "Berlin".

Peter

Β 

Sincerely

Peter

nicholas
Akeeba Staff
Manager
Make sure that "Local time in Manage Backups" is set to Yes. Then edit your Joomla user account (look at the top right corner of the backend for the user profile edit menu) and set your timezone to Europe/Berlin. That's all it takes :)

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!

pk@klinke,de
It have checked the settings and all seems to be right.

But the time is still 2 hours back. Screenshot is from backup started 13:15 (1:15 pm)

Peter

Β 

Sincerely

Peter

nicholas
Akeeba Staff
Manager
The time noted in the description is always in GMT by design (otherwise it becomes confusing when you have multiple administrators in multiple timezones which is actually the typical use case of Akeeba Backup). The options control how the actual backup time is displayed in the Manage Backups page. If you go there you will see that it's displayed in your local timezone.

We could always change the default description text to be less specific e.g. "Default backup description" or remove it altogether -- something we actually have been considering because people do get confused by it and I'm personally not convinced it's any useful at all.

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!