From 6cbb9c07e4c81c146b10d5f1b6c96aa3ef65d448 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Mon, 16 Dec 2024 15:06:41 -0500 Subject: [PATCH] fix: 12 hour timestamp logic corrected --- web/components/Notifications/Item.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/components/Notifications/Item.vue b/web/components/Notifications/Item.vue index 2b643ed26..6325ba4a9 100644 --- a/web/components/Notifications/Item.vue +++ b/web/components/Notifications/Item.vue @@ -72,8 +72,7 @@ const reformattedTimestamp = computed(() => { day: 'numeric', hour: '2-digit', minute: '2-digit', - hour12: - ['AM', 'PM'].includes(props.formattedTimestamp ?? 'AM') + hour12: ['AM', 'PM'].some(period => (props.formattedTimestamp ?? 'AM').includes(period)) }).format(new Date(props.timestamp ?? new Date())); return reformattedDate; });