Browse Source

added seconds format for log (#158)

tested with stream connect disconnect all good
pull/1886/head
controlfreak 5 years ago committed by GitHub
parent
commit
ad3552f683
  1. 2
      web/components/log-table.tsx

2
web/components/log-table.tsx

@ -59,7 +59,7 @@ export default function LogTable({ logs, pageSize }: Props) {
key: 'time', key: 'time',
render: timestamp => { render: timestamp => {
const dateObject = new Date(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(), sorter: (a, b) => new Date(a.time).getTime() - new Date(b.time).getTime(),
sortDirections: ['descend', 'ascend'] as SortOrder[], sortDirections: ['descend', 'ascend'] as SortOrder[],

Loading…
Cancel
Save