Support

Akeeba Backup for Joomla!

#39314 Double date

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.0.29
Akeeba Backup version
9.6.1

Latest post by nicholas on Friday, 04 August 2023 05:41 CDT

Django29

Hello.

On one of my sites, in the "Manage backups" list, the dates are doubled : Screenshot

Why ?

nicholas
Akeeba Staff
Manager

You appear to have modified the Date Format in the component options (see https://www.akeeba.com/documentation/akeeba-backup-joomla/editing-components-parameters.html#component-options-backend) but entered the date format as HH:ii:ss which is wrong.

As per the PHP manual, a single uppercase letter H prints the “24-hour format of an hour with leading zeros”. If you put it twice, it prints this information twice. Same for i and s.

Your backup was taken at 04:08:23 UTC. This time formatted with the date format H:i:s prints 04:08:23. The same time formatted with the date format string HH:ii:ss prints 0404:0808:2323 which is exactly what you got.

Solution: either remove completely what you entered (so that Akeeba Backup can use Joomla's default date format), or enter the string H:i:s to print the date correctly.

Side note: The default Joomla! date/time format string is actually a language string. Namely, it's the language string with the key DATE_FORMAT_LC4. Normally, this is set to Y-m-d, thus printing the year (as four digits), month, and day of the week with leading zeroes. If you have overridden this language string to HH:ii:ss then Joomla tells Akeeba Backup that the default format string is your (incorrect) override when the Date Format in Akeeba Backup's Options page is blank. If this is what you've done you should kindly note that you have broken the date display across your entire site, wherever the default date format string DATE_FORMAT_LC4 is used by any core Joomla! or third party component, therefore you need to rectify this in the language overrides of your site.

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!

Django29

That was it.

As there are  2 numbers for the day, month, and year, I had entered : dd:mm:yy.

I changed it to d:m:y, and it's OK.

Thanks.

nicholas
Akeeba Staff
Manager

You're welcome!

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!