feat(var): add update at from create at
This commit is contained in:
@@ -288,14 +288,16 @@ const ListNotification = memo(function ListNotification(props) {
|
|||||||
name: user.contact_name,
|
name: user.contact_name,
|
||||||
phone: user.contact_phone,
|
phone: user.contact_phone,
|
||||||
status: user.is_send ? 'Delivered' : 'Pending',
|
status: user.is_send ? 'Delivered' : 'Pending',
|
||||||
timestamp: user.created_at
|
timestamp: user.updated_at
|
||||||
? new Date(user.created_at).toLocaleString('id-ID', {
|
? new Date(user.updated_at)
|
||||||
day: '2-digit',
|
.toLocaleString('id-ID', {
|
||||||
month: '2-digit',
|
day: '2-digit',
|
||||||
year: 'numeric',
|
month: '2-digit',
|
||||||
hour: '2-digit',
|
year: 'numeric',
|
||||||
minute: '2-digit',
|
hour: '2-digit',
|
||||||
}) + ' WIB'
|
minute: '2-digit',
|
||||||
|
})
|
||||||
|
.replace('.', ':') + ' WIB'
|
||||||
: 'N/A',
|
: 'N/A',
|
||||||
}));
|
}));
|
||||||
setUserHistoryData(transformedUsers);
|
setUserHistoryData(transformedUsers);
|
||||||
|
|||||||
Reference in New Issue
Block a user