How do I set the timezone for my PHP application?

In order to make your PHP application (including Symfony and Zend Framework) aware of your time zone, set the date.timezone php configuration variable in a .htaccess file, like this:

Inside an .htaccess file:

From Plesk, you can create and edit this file from the File Manager located inside your domain section.

You can verify the change by creating a PHP script with the following content:

Which will print the time and the time zone.