added seconds format for log (#158)

tested with stream connect disconnect all good
This commit is contained in:
controlfreak 2021-05-07 12:02:17 +12:00 committed by GitHub
parent d50b58eb09
commit ad3552f683

View file

@ -59,7 +59,7 @@ export default function LogTable({ logs, pageSize }: Props) {
key: 'time',
render: timestamp => {
const dateObject = new Date(timestamp);
return format(dateObject, 'p P');
return format(dateObject, 'pp P');
},
sorter: (a, b) => new Date(a.time).getTime() - new Date(b.time).getTime(),
sortDirections: ['descend', 'ascend'] as SortOrder[],