Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ForumDraftsTabel DataTable expects DateTimeImmutable
Browse files Browse the repository at this point in the history
Change Forum Draft Timezone to system timezone

Remove Timezone from ForumDrafTable
fhelfer committed Jun 5, 2024
1 parent 87edbcf commit e80b760
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/ILIAS/Forum/classes/Drafts/ForumDraftsTable.php
Original file line number Diff line number Diff line change
@@ -22,14 +22,15 @@

use Generator;
use ilObjUser;
use ilDateTime;
use ilLanguage;
use ilObjForum;
use DateTimeZone;
use ilObjForumGUI;
use ilCtrlInterface;
use ilForumPostDraft;
use ILIAS\Data\Order;
use ILIAS\Data\Range;
use DateTimeImmutable;
use ILIAS\UI\URLBuilder;
use ILIAS\UI\Factory as UIFactory;
use ILIAS\Data\Factory as DataFactory;
@@ -97,7 +98,9 @@ public function initRecords(): void
} else {
$this->records[$draft_id]['draft'] = $draft['subject'];
}
$this->records[$draft_id]['edited_on'] = new ilDateTime($draft['post_update'], IL_CAL_DATETIME);
$this->records[$draft_id]['edited_on'] = new DateTimeImmutable(
$draft['post_update']
);
}
}
}

0 comments on commit e80b760

Please sign in to comment.