Fabien Potencier c6ad6feda4 minor #1820 no need to call setTimezone on a current date (Tobion)
This PR was merged into the 1.x branch.

Discussion
----------

no need to call setTimezone on a current date

Avoiding unnecessary method calls.

- When retrieving the current time, there is no point changing the timezone from default to the specified timezone, e.g. if you just use twigs `date()` function.
- When dealing with timestamps, the initial timezone is irrelevant as well since unix timstamps are always in GMT.

Commits
-------

163f42e no need to call setTimezone on a current date
2015-09-12 10:53:17 +02:00
2015-09-11 16:58:04 +02:00
2015-09-11 17:49:20 +02:00
2015-01-20 03:31:04 +01:00
2015-09-11 16:52:36 +02:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: http://twig.sensiolabs.org/documentation
Languages
PHP 99.9%