Skip to content

Commit 0755819

Browse files
nhaagenAmstutz
authored andcommitted
UI/Input: 31268, relay transformation to group-inputs instead of setting own (ILIAS-eLearning#3582)
1 parent 97f2de2 commit 0755819

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/UI/Implementation/Component/Input/Field/Duration.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,11 @@ function ($inpt) {
279279
*/
280280
public function withTimezone(string $tz) : C\Input\Field\Duration
281281
{
282-
$trafo = $this->refinery->dateTime()->changeTimezone($tz);
283282
$clone = clone $this;
284283
$clone->timezone = $tz;
285-
286284
$clone->inputs = array_map(
287-
function ($inpt) use ($trafo) {
288-
return $inpt->withAdditionalTransformation($trafo);
285+
function ($inpt) use ($tz) {
286+
return $inpt->withTimezone($tz);
289287
},
290288
$clone->inputs
291289
);

0 commit comments

Comments
 (0)