@@ -32,28 +32,28 @@ public function testConvertsStrings(): void
32
32
33
33
public function testConvertsStringables (): void
34
34
{
35
- $ result = asDateTimeImmutable (new StringableString ('2010-09-08T07:06:05+02 :00 ' ));
35
+ $ result = asDateTimeImmutable (new StringableString ('2010-09-08T07:06:05+00 :00 ' ));
36
36
37
37
self ::assertInstanceOf (DateTimeImmutable::class, $ result );
38
- self ::assertSame ('2010-09-08T07:06:05+02 :00 ' , $ result ->format ('c ' ));
38
+ self ::assertSame ('2010-09-08T07:06:05+00 :00 ' , $ result ->format ('c ' ));
39
39
}
40
40
41
41
public function testConvertsDateTimeImmutableWithSameTimeZone (): void
42
42
{
43
43
$ dateTimeZone = asDateTimeImmutable (new DateTimeImmutable ())->getTimezone ();
44
44
45
- $ result = asDateTimeImmutable (new DateTimeImmutable ('2010-09-08T07:06:05+02 :00 ' , $ dateTimeZone ));
45
+ $ result = asDateTimeImmutable (new DateTimeImmutable ('2010-09-08T07:06:05+00 :00 ' , $ dateTimeZone ));
46
46
47
47
self ::assertInstanceOf (DateTimeImmutable::class, $ result );
48
- self ::assertSame ('2010-09-08T07:06:05+02 :00 ' , $ result ->format ('c ' ));
48
+ self ::assertSame ('2010-09-08T07:06:05+00 :00 ' , $ result ->format ('c ' ));
49
49
}
50
50
51
51
public function testConvertsDateTimeImmutableWithDifferentTimeZone (): void
52
52
{
53
53
$ result = asDateTimeImmutable (new DateTimeImmutable ('2010-09-08T07:06:05+02:00 ' ));
54
54
55
55
self ::assertInstanceOf (DateTimeImmutable::class, $ result );
56
- self ::assertSame ('2010-09-08T07 :06:05+02 :00 ' , $ result ->format ('c ' ));
56
+ self ::assertSame ('2010-09-08T05 :06:05+00 :00 ' , $ result ->format ('c ' ));
57
57
}
58
58
59
59
public function testDoesNotTouchNull (): void
0 commit comments