demo: Don't use localizeddate to avoid Intl errors
I didn’t have a supported timezone setting in my PHP.ini, resulting in the following exception:
An exception has been thrown during the rendering of a template (“Time zone different than GMT or UTC is not supported as a formatting output. Please install the “intl” extension for full localization capabilities.”) in base.html.twig at line 150.
I think this will be a common issue for Windows users. As this demo should work straightaway, I propose to remove |localizeddate from the templates and simply replace them by |date('r') or the like.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- fixes #329: Require ext-intl in the composer.json — committed to aminin/symfony-demo by aminin 8 years ago
- bug #344 Made the application work when PHP's intl is not available (javiereguiluz) This PR was merged into the master branch. Discussion ---------- Made the application work when PHP's intl is not... — committed to symfony/demo by javiereguiluz 8 years ago
do a sudo apt-get install php5-intl