We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97f2de2 commit 0755819Copy full SHA for 0755819
src/UI/Implementation/Component/Input/Field/Duration.php
@@ -279,13 +279,11 @@ function ($inpt) {
279
*/
280
public function withTimezone(string $tz) : C\Input\Field\Duration
281
{
282
- $trafo = $this->refinery->dateTime()->changeTimezone($tz);
283
$clone = clone $this;
284
$clone->timezone = $tz;
285
-
286
$clone->inputs = array_map(
287
- function ($inpt) use ($trafo) {
288
- return $inpt->withAdditionalTransformation($trafo);
+ function ($inpt) use ($tz) {
+ return $inpt->withTimezone($tz);
289
},
290
$clone->inputs
291
);
0 commit comments