diff --git a/components/base/ListImageItem.vue b/components/base/ListImageItem.vue index 6d05bd6..e4cea51 100644 --- a/components/base/ListImageItem.vue +++ b/components/base/ListImageItem.vue @@ -11,8 +11,13 @@ :imgAttrs="{ class: 'w-full h-56 object-cover object-center' }" />
+
{{ new Date(data?.date ?? "").toLocaleString("de-DE", { day: "2-digit", @@ -22,6 +27,16 @@ hour: "2-digit", }) }} + Uhr +
++ {{ + new Date(data?.date ?? "").toLocaleString("de-DE", { + minute: "2-digit", + hour: "2-digit", + }) + }} + Uhr
{{ data?.description }}
@@ -39,6 +54,7 @@ const baseUrl = runtimeConfig.public.strapi.url;
defineProps({
data: Object as PropType
{{ @@ -34,6 +35,7 @@ hour: "2-digit", }) }} + Uhr
{{ data?.description }} diff --git a/components/shared/List.vue b/components/shared/List.vue index b183c3c..6cff99e 100644 --- a/components/shared/List.vue +++ b/components/shared/List.vue @@ -23,7 +23,18 @@ :class="data?.lookup.image_item ? 'flex-row flex-wrap justify-center' : ' flex-col'" >
+ {{ getDate(index) }} +
+