From 01a27e577c1d4212bae0542a4e2c4df629791ba6 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. --- .../Serializer/Tests/Normalizer/DateTimeNormalizerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php index 99b224996c..e86fbdc48d 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php @@ -143,14 +143,14 @@ class DateTimeNormalizerTest extends TestCase ); 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'), ); }