fabpot/Twig — pull request #1449 by gbouchez (2014-07-15 11:58:23+00:00)
Title: Fixed the date filter's timezone not being set correctly with strings

When the date filter is used on a string with a timezone specified, the timezone is ignored because of this :

$date = new DateTime($date, $defaultTimezone);
if (false !== $timezone) {
$date->setTimezone($defaultTimezone);
}

Since the date is initialized with `$defaultTimezone` as its timezone, using `$date->setTimezone($defaultTimezone);` has no effect, and the date is displayed without changes since it is considered to already be from this timezone.

Might fix issue #1340