Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT

@fancyweb fancyweb requested a review from OskarStark as a code owner October 13, 2023 12:52
@carsonbot carsonbot added this to the 6.4 milestone Oct 13, 2023
@@ -35,7 +35,7 @@ public static function mockTime(string|\DateTimeImmutable|bool $when = true): Cl
false === $when => self::saveClockBeforeTest(false),
true === $when => new MockClock(),
$when instanceof \DateTimeImmutable => new MockClock($when),
default => new MockClock(now()->modify($when)),
default => new MockClock(now($when)),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Necessary so the timezone is taken into account

@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants