From 787fa7c8f88c1a6e4733c7da9f4deb82f277e1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nil=20Portugu=C3=A9s=20Calder=C3=B3?= Date: Sat, 18 Jul 2015 18:34:24 +0200 Subject: [PATCH] test fix: yet another timezone --- tests/Transformer/Json/JsonApiTransformerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); }