fixed failing test

This commit is contained in:
Arnaud Le Blanc
2011-11-12 12:01:31 +01:00
parent 65f09ac724
commit 9b4e298e8e
@@ -1,12 +1,12 @@
--TEST-- --TEST--
"constant" filter "constant" function
--TEMPLATE-- --TEMPLATE--
{{ date|date(constant('DATE_W3C')) }} {% if constant('DATE_W3C') == expect %}
true
{% else %}
false
{% endif %}
--DATA-- --DATA--
$d = date_default_timezone_get(); return array('expect' => DATE_W3C);
date_default_timezone_set('UTC');
$ret = array('date' => strtotime('2005-10-15 10:00:01'));
date_default_timezone_set($d);
return $ret;
--EXPECT-- --EXPECT--
2005-10-15T10:00:01+00:00 true