From f13ff3d05418bbc55665f5cc39aae8632605b68c Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 7 Dec 2018 15:51:05 +0000 Subject: [PATCH] change timezone to fix tests on Windows As I understand the failing tests timezones have changed in Russia in 2016, but this is not reflected in the timezone database used on AppVeyor. Since the tests do not depend on a particular timezone (it's only important for it to be different from UTC) we should safely be able to switch to another timezone. --- Tests/Normalizer/DateTimeNormalizerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Normalizer/DateTimeNormalizerTest.php b/Tests/Normalizer/DateTimeNormalizerTest.php index 99b224996cb1..e86fbdc48df0 100644 --- a/Tests/Normalizer/DateTimeNormalizerTest.php +++ b/Tests/Normalizer/DateTimeNormalizerTest.php @@ -143,14 +143,14 @@ public function normalizeUsingTimeZonePassedInContextAndExpectedFormatWithMicros ); yield array( - '2018-12-01T21:03:06.067634', + '2018-12-01T19:03:06.067634', 'Y-m-d\TH:i:s.u', \DateTime::createFromFormat( 'Y-m-d\TH:i:s.u', '2018-12-01T18:03:06.067634', new \DateTimeZone('UTC') ), - new \DateTimeZone('Europe/Moscow'), + new \DateTimeZone('Europe/Berlin'), ); }