From c50f04bafa33ca7f258580637b7bc68364baf591 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Jun 2026 09:09:53 +0200 Subject: [PATCH] =?UTF-8?q?refactor(geschichte):=20use=20formatPublishedAt?= =?UTF-8?q?()=20in=20GeschichteListRow=20=E2=80=94=20remove=20DRY=20violat?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inline publishedAt $derived.by() duplicated the exact logic that formatPublishedAt() in utils.ts encapsulates. Replace it with the shared helper and drop the now-unused formatDate import. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/geschichte/GeschichteListRow.svelte | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/geschichte/GeschichteListRow.svelte b/frontend/src/lib/geschichte/GeschichteListRow.svelte index 9d5dc5df..c31ffe13 100644 --- a/frontend/src/lib/geschichte/GeschichteListRow.svelte +++ b/frontend/src/lib/geschichte/GeschichteListRow.svelte @@ -1,8 +1,7 @@