8000 Fix CI · symfony/clock@48102bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 48102bc

Browse files
committed
Fix CI
1 parent db926dc commit 48102bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Test/ClockSensitiveTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function mockTime(string|\DateTimeImmutable|bool $when = true): Cl
3535
false === $when => self::saveClockBeforeTest(false),
3636
true === $when => new MockClock(),
3737
$when instanceof \DateTimeImmutable => new MockClock($when),
38-
default => new MockClock(now()->modify($when)),
38+
default => new MockClock(now($when)),
3939
});
4040

4141
return Clock::get();

Tests/DatePointTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DatePointTest extends TestCase
2121

2222
public function testDatePoint()
2323
{
24-
self::mockTime('2010-01-28 15:00:00');
24+
self::mockTime('2010-01-28 15:00:00 UTC');
2525

2626
$date = new DatePoint();
2727
$this->assertSame('2010-01-28 15:00:00 UTC', $date->format('Y-m-d H:i:s e'));

0 commit comments

Comments
 (0)
0