From ff14bd59b25e389571d0560f0946b91eff5fee5f Mon Sep 17 00:00:00 2001 From: l1xnan Date: Wed, 17 Apr 2024 21:12:32 +0800 Subject: [PATCH] feat: change timestamp format --- src/components/tables/CanvasTable.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/tables/CanvasTable.tsx b/src/components/tables/CanvasTable.tsx index 134b8e3..a438252 100644 --- a/src/components/tables/CanvasTable.tsx +++ b/src/components/tables/CanvasTable.tsx @@ -236,6 +236,9 @@ export const CanvasTable = React.memo(function CanvasTable({ if (DataType.isDate(dataType)) { return dayjs(value).format('YYYY-MM-DD'); } + if (DataType.isTimestamp(dataType)) { + return dayjs(value).format('YYYY-MM-DD HH:mm:ss'); + } if (beautify && DataType.isFloat(dataType) && precision) { try {