Skip to content

Commit 7a164a0

Browse files
Internal: Fix soft-delete date type in migration - refs #7514
1 parent 89aa229 commit 7a164a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CoreBundle/Migrations/AbstractMigrationChamilo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ public function fixItemProperty(
445445

446446
$lastEdit = (string) ($item['lastedit_date'] ?? '');
447447
$lastUpdatedAt = '' === $lastEdit
448-
? new DateTimeImmutable('now', $utc)
449-
: new DateTimeImmutable($lastEdit, $utc);
448+
? new \DateTime('now', $utc)
449+
: new \DateTime($lastEdit, $utc);
450450

451451
$newVisibility = ResourceLink::VISIBILITY_DRAFT;
452452

0 commit comments

Comments
 (0)