feat: add movies and series to resources
Some checks failed
Deploy to SFTP Server / build (push) Failing after 2m2s
Some checks failed
Deploy to SFTP Server / build (push) Failing after 2m2s
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user