Skip to content

Commit

Permalink
Fix changelog and frozen clock initialization (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Kolb <[email protected]>
  • Loading branch information
christian-kolb and Christian Kolb authored Jun 3, 2024
1 parent ce619c7 commit d9f1a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.11.0

- Added `Clock` implementation with `SystemClock` and `FixedClock`.
- Added `Clock` implementation with `SystemClock` and `FrozenClock`.

## 0.10.0

Expand Down
2 changes: 1 addition & 1 deletion src/Clock/FrozenClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class FrozenClock implements Clock

public function __construct(?Moment $moment = null)
{
$this->moment = $moment ?? Moment::fromDateTime(new \DateTimeImmutable('now'));
$this->moment = $moment ?? Moment::fromString('now');
}

public function freeze(Moment $moment): void
Expand Down

0 comments on commit d9f1a50

Please sign in to comment.