From 5281e288a924e36b28b6cd03f8eaa9af526c65a8 Mon Sep 17 00:00:00 2001 From: zain94rif Date: Wed, 7 Jan 2026 11:00:35 +0700 Subject: [PATCH] feat(var): add update at from create at --- .../component/ListNotification.jsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pages/notification/component/ListNotification.jsx b/src/pages/notification/component/ListNotification.jsx index 5a590ed..3d57194 100644 --- a/src/pages/notification/component/ListNotification.jsx +++ b/src/pages/notification/component/ListNotification.jsx @@ -288,14 +288,16 @@ const ListNotification = memo(function ListNotification(props) { name: user.contact_name, phone: user.contact_phone, status: user.is_send ? 'Delivered' : 'Pending', - timestamp: user.created_at - ? new Date(user.created_at).toLocaleString('id-ID', { - day: '2-digit', - month: '2-digit', - year: 'numeric', - hour: '2-digit', - minute: '2-digit', - }) + ' WIB' + timestamp: user.updated_at + ? new Date(user.updated_at) + .toLocaleString('id-ID', { + day: '2-digit', + month: '2-digit', + year: 'numeric', + hour: '2-digit', + minute: '2-digit', + }) + .replace('.', ':') + ' WIB' : 'N/A', })); setUserHistoryData(transformedUsers);