Skip to content

Commit 4f55685

Browse files
authored
fix(audit-log): improved timestamp formatting (#138)
1 parent dfcae4d commit 4f55685

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/views/Audit/AuditLogsView.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44
<DataTable data-key="id" :value="store.entries">
55
<Column field="createdAt" header="Timestamp">
66
<template #body="slotProps">
7-
{{ new Date(slotProps.data.createdAt).toLocaleString() }}
7+
{{
8+
new Date(slotProps.data.createdAt).toLocaleString('en-GB', {
9+
weekday: 'long',
10+
year: 'numeric',
11+
month: 'long',
12+
day: 'numeric',
13+
hour: 'numeric',
14+
minute: 'numeric',
15+
second: 'numeric',
16+
})
17+
}}
818
</template>
919
</Column>
1020
<Column field="userName" header="Name" />

0 commit comments

Comments
 (0)