Skip to content

Commit

Permalink
Fixed ::date & ::store methods
Browse files Browse the repository at this point in the history
  • Loading branch information
toonvandenbos committed Dec 14, 2022
1 parent f84f002 commit 54b82f4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Timezone.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ public function now(): CarbonInterface
*/
public function date($value, callable $maker = null): CarbonInterface
{
return $this->convertToCurrent(
$this->makeDateWithStorage($value, $maker)
);
return $this->makeDateWithCurrent($value, $maker);
}

/**
Expand All @@ -121,9 +119,7 @@ public function date($value, callable $maker = null): CarbonInterface
*/
public function store($value, callable $maker = null): CarbonInterface
{
return $this->convertToStorage(
$this->makeDateWithCurrent($value, $maker)
);
return $this->makeDateWithStorage($value, $maker);
}

/**
Expand Down

0 comments on commit 54b82f4

Please sign in to comment.