mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
c6ad6feda419fab0ef52318e457155174530a5c4
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
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
Description
Languages
PHP
99.9%