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:

php_value date.timezone America/New_York

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:

<?php echo date('Y-m-d H:i:s e' );

Which will print the time and the time zone.