finally fix multidates?

This commit is contained in:
2023-02-02 17:42:58 +10:00
parent e33e8ad6f6
commit 900909aa5b

View File

@@ -126,10 +126,10 @@ const workshopDate = computed(() => {
) {
str = [format(new Date(event.value.start_at), "dd/MM/yyyy")];
if (event.value.end_at.length > 0) {
str.push(
" - ",
format(new Date(event.value.end_at), "dd/MM/yyyy")
);
str[0] =
str[0] +
" - " +
format(new Date(event.value.end_at), "dd/MM/yyyy");
}
} else {
str = [