add DateTimeZone UTC to DateTime calls in FiltersTest
This commit is contained in:
@@ -46,7 +46,7 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
|
|||||||
array(
|
array(
|
||||||
'{{% FILTERS }}{{ date | longdate }}',
|
'{{% FILTERS }}{{ date | longdate }}',
|
||||||
$helpers,
|
$helpers,
|
||||||
(object) array('date' => new DateTime('1/1/2000')),
|
(object) array('date' => new DateTime('1/1/2000', new DateTimeZone("UTC"))),
|
||||||
'2000-01-01 12:01:00'
|
'2000-01-01 12:01:00'
|
||||||
),
|
),
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
|
|||||||
});
|
});
|
||||||
|
|
||||||
$foo = new \StdClass;
|
$foo = new \StdClass;
|
||||||
$foo->date = new DateTime('1/1/2000');
|
$foo->date = new DateTime('1/1/2000', new DateTimeZone("UTC"));
|
||||||
|
|
||||||
$this->assertEquals('[[2000-01-01 12:01:00]]', $tpl->render($foo));
|
$this->assertEquals('[[2000-01-01 12:01:00]]', $tpl->render($foo));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user