Skip to content

Commit

Permalink
change timezone to fix tests on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xabbuh committed Dec 7, 2018
1 parent 40b326c commit f13ff3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Normalizer/DateTimeNormalizerTest.php
Expand Up @@ -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'),
);
}

Expand Down

0 comments on commit f13ff3d

Please sign in to comment.