S
S
Sergey Komlev2018-07-07 18:26:30
Zend Framework
Sergey Komlev, 2018-07-07 18:26:30

How to fix DateTime::__construct(): Failed to parse time string error?

When changing the language from EN (English) to CS (Czech) in the CMS Pimcore editor settings, the following error occurs:
5b40db15232f7627360829.png
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (7. 6. 2018 23:00:00) at position 0 (7): Unexpected character' in /web/web9352 /web/website/views/scripts/package/overview.php:29 Stack trace: #0 /web/web9352/web/website/views/scripts/package/overview.php(29): DateTime->__construct('7 6. 2018 23:0...') #1 /web/web9352/web/vendor/zendframework/zendframework1/library/Zend/View.php(157): include('/web/web9352/we... ') #2 /web/web9352/web/vendor/zendframework/zendframework1/library/Zend/View/Abstract.php(888): Zend_View->_run('/web/web9352/we...') #3 / web/web9352/web/vendor/zendframework/zendframework1/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render('package/overvie...') #4 /web/web9352/web/vendor/zendframework/zendframework1/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('package/overvie...', NULL) # 5 /web/web9352/web/vendor/zendframework/zendframework1/lib in /web/web9352/web/website/views/scripts/package/overview.php on line 29
The overview.php file says the following:
5b40db89a25a9043157433.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question