From e0b04a57aeef7f9be3c015e28261c876cb23c040 Mon Sep 17 00:00:00 2001 From: James Collins Date: Fri, 23 Jun 2023 18:53:57 +1000 Subject: [PATCH] fix starts at column not showing correct relative date --- resources/js/views/dashboard/EventList.vue | 46 +--------------------- 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/resources/js/views/dashboard/EventList.vue b/resources/js/views/dashboard/EventList.vue index 9c59bdb..376dfef 100644 --- a/resources/js/views/dashboard/EventList.vue +++ b/resources/js/views/dashboard/EventList.vue @@ -182,23 +182,6 @@ const handleSearch = () => { handleLoad(); }; -/** - * Handle user selecting option in action button. - * @param {Event} item The event item. - * @param option - */ -const handleActionButton = (item: Event, option: string): void => { - if (option.length == 0) { - handleEdit(item); - } else if (option.toLowerCase() == "view") { - handleView(item); - } else if (option.toLowerCase() == "duplicate") { - handleDuplicate(item); - } else if (option.toLowerCase() == "delete") { - handleDelete(item); - } -}; - /** * Handle loading the page and list */ @@ -235,7 +218,7 @@ const handleLoad = async () => { row.start_at = new SMDate(row.start_at, { format: "ymd", utc: true, - }).relative(); + }).format("MMM d yyyy, H:mm aa"); } if (row.end_at !== "undefined") { row.end_at = new SMDate(row.end_at, { @@ -395,30 +378,3 @@ const parseEventLocation = (item: Event) => { handleLoad(); - -