feat: add movies and series to resources
Some checks failed
Deploy to SFTP Server / build (push) Failing after 2m2s

This commit is contained in:
Max Richter
2025-10-24 12:44:46 +02:00
parent 6aa48cc60e
commit 231bdb09a3
6 changed files with 92 additions and 38 deletions

View File

@@ -10,12 +10,17 @@
return isNaN(v.getTime()) ? "" : v.toISOString();
};
const formatDate = (d: string | Date) =>
new Intl.DateTimeFormat("de-DE", {
day: "2-digit",
month: "long",
year: "numeric",
}).format(toDate(d));
const formatDate = (d: string | Date) => {
try {
return new Intl.DateTimeFormat("de-DE", {
day: "2-digit",
month: "long",
year: "numeric",
}).format(toDate(d));
} catch (err) {
return "";
}
};
</script>
<div class="flex gap-5">