Support

Akeeba Backup for Joomla!

#12114 Continue of - #12112 – DateTime::__construct() [datetime.--construct]: Failed to parse time string - problem

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 Friday, 27 April 2012 07:28 CDT

user62615
This is a contiue of

#12112 – DateTime::__construct() [datetime.--construct]: Failed to parse time string - problem

Here is waht i did and results

First
Restored the backup with out marking the "force uft-8" in a php 5.2 the system had the "dateTime::__construct()" problem
Change it to PHP 5.3 - still the same problem

Next
Restored the backup with marking the "force uft-8" in a php 5.2 - no problem with
the "dateTime::__construct()"
Change it to PHP 5.3 - No problem

Then i ask what is the diffrent with and with out the "force uft-8" and what and how can i do so the system act like it was restored with "force uft-8)

Henrik


nicholas
Akeeba Staff
Manager
That option merely changes how the database tables are restored. As per Joomla!'s requirements, your database must be created with the utf8_general_ci default collation setting. If you don't, the restored tables will have the wrong collation and problems may occur. Checking the Force UTF-8 box will have Akeeba Backup forcibly change the collation of each individual table it restores to UTF-8, circumventing the problem. Please note that this is an architecturally incorrect solution. As I have mentioned in the Quick Start Guide and the Troubleshooter documentation, the proper solution is to create the database with the utf8_general_ci default collation before restoring your site.

Now, as to why this had an effect on the DateTime constructor issue, that beats me. Joomla! itself doesn't store the timezone in the database, so that setting doesn't have an effect. I am not sure, though, if third party software may be affected.

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!