diff --git a/tests/Transformer/Json/JsonApiTransformerTest.php b/tests/Transformer/Json/JsonApiTransformerTest.php index 9ff0006..e718e99 100644 --- a/tests/Transformer/Json/JsonApiTransformerTest.php +++ b/tests/Transformer/Json/JsonApiTransformerTest.php @@ -180,7 +180,7 @@ public function testItWillSerializeToJsonApiASimpleObject() for ($i = 1;$i <= 5; ++$i) { $userId = $i * 5; - $createdAt = new \DateTime("2015/07/18 12:48:00 + $i days"); + $createdAt = new \DateTime("2015/07/18 12:48:00 + $i days", new \DateTimeZone('Europe/Madrid')); $post->addComment($i * 10, "User {$userId}", "I am writing comment no. {$i}", $createdAt->format('c')); }