8000 change timezone to fix tests on Windows · symfony/symfony@01a27e5 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 01a27e5

Browse files
committed
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.
1 parent 9e84e0f commit 01a27e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ public function normalizeUsingTimeZonePassedInContextAndExpectedFormatWithMicros
143143
);
144144

145145
yield array(
146-
'2018-12-01T21:03:06.067634',
146+
'2018-12-01T19:03:06.067634',
147147
'Y-m-d\TH:i:s.u',
148148
\DateTime::createFromFormat(
149149
'Y-m-d\TH:i:s.u',
150150
'2018-12-01T18:03:06.067634',
151151
new \DateTimeZone('UTC')
152152
),
153-
new \DateTimeZone('Europe/Moscow'),
153+
new \DateTimeZone('Europe/Berlin'),
154154
);
155155
}
156156

0 commit comments

Comments
 (0)
0