Client: Better datetime field support

This commit is contained in:
Donkie
2023-05-14 20:06:44 +02:00
parent 43919ac90e
commit caa25ccf93
10 changed files with 24 additions and 16 deletions

View File

@@ -42,12 +42,16 @@ export const SpoolList: React.FC<IResourceComponentsProps> = () => {
<Table.Column
dataIndex={["first_used"]}
title="First Used"
render={(value: any) => <DateField value={value} format="lll" />}
render={(value) => (
<DateField value={value} format="YYYY-MM-DD HH:mm:ss" />
)}
/>
<Table.Column
dataIndex={["last_used"]}
title="Last Used"
render={(value: any) => <DateField value={value} format="lll" />}
render={(value) => (
<DateField value={value} format="YYYY-MM-DD HH:mm:ss" />
)}
/>
<Table.Column dataIndex="location" title="Location" />
<Table.Column dataIndex="lot_nr" title="Lot Nr" />