fix(manga): ChapterResponse.createdAt en string RFC3339

- ChapterResponse expose createdAt comme string formatée (RFC3339)
- GetMangaChaptersHandler formate la date à la construction du DTO
- GetMangaChaptersStateProvider adapté en conséquence

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2026-03-09 19:16:26 +01:00
parent 2c051351a8
commit ff451855a7
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ readonly class GetMangaChaptersHandler
volume: $chapter->getVolume(),
isVisible: $chapter->isVisible(),
pagesDirectory: $chapter->getPagesDirectory(),
createdAt: $chapter->getCreatedAt()
createdAt: $chapter->getCreatedAt()->format(\DateTimeInterface::RFC3339)
),
$chapters
),

View File

@@ -11,6 +11,6 @@ readonly class ChapterResponse
public ?int $volume,
public bool $isVisible,
public ?string $pagesDirectory,
public \DateTimeImmutable $createdAt
public string $createdAt
) {}
}