fix formatting

This commit is contained in:
2023-02-02 17:31:40 +10:00
parent c3ebec38d7
commit 7369eb469e

View File

@@ -124,12 +124,13 @@ const workshopDate = computed(() => {
) != ) !=
event.value.end_at.substring(0, event.value.end_at.indexOf(" ")) event.value.end_at.substring(0, event.value.end_at.indexOf(" "))
) { ) {
str = format(new Date(event.value.start_at), "dd/MM/yyyy"); str = [format(new Date(event.value.start_at), "dd/MM/yyyy")];
if (event.value.end_at.length > 0) { if (event.value.end_at.length > 0) {
str = str = [
str + str,
" - " + " - ",
format(new Date(event.value.end_at), "dd/MM/yyyy"); format(new Date(event.value.end_at), "dd/MM/yyyy"),
];
} }
} else { } else {
str = [ str = [