diff --git a/client/index.html b/client/index.html index b23ba8d..c55791a 100644 --- a/client/index.html +++ b/client/index.html @@ -2,7 +2,7 @@ - + diff --git a/client/src/pages/filaments/list.tsx b/client/src/pages/filaments/list.tsx index 1ea3682..2e92470 100644 --- a/client/src/pages/filaments/list.tsx +++ b/client/src/pages/filaments/list.tsx @@ -9,6 +9,10 @@ import { } from "@refinedev/antd"; import { Table, Space } from "antd"; import { NumberFieldUnit } from "../../components/numberField"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; + +dayjs.extend(utc); export const FilamentList: React.FC = () => { const { tableProps } = useTable({ @@ -90,7 +94,11 @@ export const FilamentList: React.FC = () => { dataIndex={["registered"]} title="Registered" render={(value) => ( - + )} /> diff --git a/client/src/pages/filaments/show.tsx b/client/src/pages/filaments/show.tsx index fe09c47..df9493e 100644 --- a/client/src/pages/filaments/show.tsx +++ b/client/src/pages/filaments/show.tsx @@ -3,6 +3,10 @@ import { IResourceComponentsProps, useShow } from "@refinedev/core"; import { Show, NumberField, DateField, TextField } from "@refinedev/antd"; import { Typography } from "antd"; import { NumberFieldUnit } from "../../components/numberField"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; + +dayjs.extend(utc); const { Title } = Typography; @@ -17,7 +21,11 @@ export const FilamentShow: React.FC = () => { Id Registered - + Name Vendor diff --git a/client/src/pages/spools/list.tsx b/client/src/pages/spools/list.tsx index 9d95ac7..2d89dd5 100644 --- a/client/src/pages/spools/list.tsx +++ b/client/src/pages/spools/list.tsx @@ -10,6 +10,10 @@ import { } from "@refinedev/antd"; import { Table, Space } from "antd"; import { NumberFieldUnit } from "../../components/numberField"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; + +dayjs.extend(utc); export const SpoolList: React.FC = () => { const { tableProps } = useTable({ @@ -68,14 +72,22 @@ export const SpoolList: React.FC = () => { dataIndex={["first_used"]} title="First Used" render={(value) => ( - + )} /> ( - + )} /> diff --git a/client/src/pages/spools/show.tsx b/client/src/pages/spools/show.tsx index 1b40fba..d038488 100644 --- a/client/src/pages/spools/show.tsx +++ b/client/src/pages/spools/show.tsx @@ -3,6 +3,10 @@ import { IResourceComponentsProps, useShow } from "@refinedev/core"; import { Show, NumberField, DateField, TextField } from "@refinedev/antd"; import { Typography } from "antd"; import { NumberFieldUnit } from "../../components/numberField"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; + +dayjs.extend(utc); const { Title } = Typography; @@ -17,11 +21,23 @@ export const SpoolShow: React.FC = () => { Id Registered - + First Used - + Last Used - + Filament {/* {filamentIsLoading ? ( <>Loading... diff --git a/client/src/pages/vendors/list.tsx b/client/src/pages/vendors/list.tsx index e8f093d..57e8888 100644 --- a/client/src/pages/vendors/list.tsx +++ b/client/src/pages/vendors/list.tsx @@ -8,6 +8,10 @@ import { DateField, } from "@refinedev/antd"; import { Table, Space } from "antd"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; + +dayjs.extend(utc); export const VendorList: React.FC = () => { const { tableProps } = useTable({ @@ -23,7 +27,11 @@ export const VendorList: React.FC = () => { dataIndex={["registered"]} title="Registered" render={(value) => ( - + )} /> diff --git a/client/src/pages/vendors/show.tsx b/client/src/pages/vendors/show.tsx index 81943ea..ba911ef 100644 --- a/client/src/pages/vendors/show.tsx +++ b/client/src/pages/vendors/show.tsx @@ -2,6 +2,10 @@ import React from "react"; import { IResourceComponentsProps, useShow } from "@refinedev/core"; import { Show, NumberField, DateField, TextField } from "@refinedev/antd"; import { Typography } from "antd"; +import dayjs from "dayjs"; +import utc from "dayjs/plugin/utc"; + +dayjs.extend(utc); const { Title } = Typography; @@ -16,7 +20,11 @@ export const VendorShow: React.FC = () => { Id Registered - + Name Comment