hide time if not needed
This commit is contained in:
parent
15431450ac
commit
b7e5e9e7fa
3 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
|||
</span>
|
||||
{{ data?.title }}
|
||||
</h1>
|
||||
<p v-if="numberOverwrite != undefined" class="w-full text-[#5c5c5c]">
|
||||
<p v-if="numberOverwrite != undefined && data?.date && data.date.includes('T')" class="w-full text-[#5c5c5c]">
|
||||
{{
|
||||
new Date(data?.date ?? "").toLocaleString("de-DE", {
|
||||
day: "2-digit",
|
||||
|
@ -29,7 +29,7 @@
|
|||
}}
|
||||
Uhr
|
||||
</p>
|
||||
<p v-else class="w-full text-[#5c5c5c]">
|
||||
<p v-else-if="data?.date && data.date.includes('T')" class="w-full text-[#5c5c5c]">
|
||||
{{
|
||||
new Date(data?.date ?? "").toLocaleString("de-DE", {
|
||||
minute: "2-digit",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue