@@ -303,13 +303,13 @@ public function testDenormalizeUsingPreserveContextTimezoneAndFormatPassedInCons
303303 {
304304 $ normalizer = new DateTimeNormalizer (
305305 [
306- DateTimeNormalizer::TIMEZONE_KEY => new \DateTimeZone ('Japan ' ),
306+ DateTimeNormalizer::TIMEZONE_KEY => new \DateTimeZone ('Asia/Tokyo ' ),
307307 DateTimeNormalizer::FORMAT_KEY => 'Y-m-d \\TH:i:sO ' ,
308308 DateTimeNormalizer::FORCE_TIMEZONE_KEY => true ,
309309 ]
310310 );
311311 $ actual = $ normalizer ->denormalize ('2016-12-01T12:34:56+0000 ' , \DateTimeInterface::class);
312- $ this ->assertEquals (new \DateTimeZone ('Japan ' ), $ actual ->getTimezone ());
312+ $ this ->assertEquals (new \DateTimeZone ('Asia/Tokyo ' ), $ actual ->getTimezone ());
313313 }
314314
315315 public function testDenormalizeUsingPreserveContextTimezoneAndFormatPassedInContext ()
@@ -319,12 +319,12 @@ public function testDenormalizeUsingPreserveContextTimezoneAndFormatPassedInCont
319319 \DateTimeInterface::class,
320320 null ,
321321 [
322- DateTimeNormalizer::TIMEZONE_KEY => new \DateTimeZone ('Japan ' ),
322+ DateTimeNormalizer::TIMEZONE_KEY => new \DateTimeZone ('Asia/Tokyo ' ),
323323 DateTimeNormalizer::FORMAT_KEY => 'Y-m-d \\TH:i:sO ' ,
324324 DateTimeNormalizer::FORCE_TIMEZONE_KEY => true ,
325325 ]
326326 );
327- $ this ->assertEquals (new \DateTimeZone ('Japan ' ), $ actual ->getTimezone ());
327+ $ this ->assertEquals (new \DateTimeZone ('Asia/Tokyo ' ), $ actual ->getTimezone ());
328328 }
329329
330330 public function testDenormalizeUsingPreserveContextTimezoneWithoutFormat ()
@@ -334,11 +334,11 @@ public function testDenormalizeUsingPreserveContextTimezoneWithoutFormat()
334334 \DateTimeInterface::class,
335335 null ,
336336 [
337- DateTimeNormalizer::TIMEZONE_KEY => new \DateTimeZone ('Japan ' ),
337+ DateTimeNormalizer::TIMEZONE_KEY => new \DateTimeZone ('Asia/Tokyo ' ),
338338 DateTimeNormalizer::FORCE_TIMEZONE_KEY => true ,
339339 ]
340340 );
341- $ this ->assertEquals (new \DateTimeZone ('Japan ' ), $ actual ->getTimezone ());
341+ $ this ->assertEquals (new \DateTimeZone ('Asia/Tokyo ' ), $ actual ->getTimezone ());
342342 }
343343
344344 public function testDenormalizeUsingPreserveContextShouldBeIgnoredWithoutTimezoneInContext ()
0 commit comments