Skip to content

Commit 54b82f4

Browse files
committed
Fixed ::date & ::store methods
1 parent f84f002 commit 54b82f4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Timezone.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ public function now(): CarbonInterface
107107
*/
108108
public function date($value, callable $maker = null): CarbonInterface
109109
{
110-
return $this->convertToCurrent(
111-
$this->makeDateWithStorage($value, $maker)
112-
);
110+
return $this->makeDateWithCurrent($value, $maker);
113111
}
114112

115113
/**
@@ -121,9 +119,7 @@ public function date($value, callable $maker = null): CarbonInterface
121119
*/
122120
public function store($value, callable $maker = null): CarbonInterface
123121
{
124-
return $this->convertToStorage(
125-
$this->makeDateWithCurrent($value, $maker)
126-
);
122+
return $this->makeDateWithStorage($value, $maker);
127123
}
128124

129125
/**

0 commit comments

Comments
 (0)