Skip to content

Commit

Permalink
feat: change timestamp format
Browse files Browse the repository at this point in the history
  • Loading branch information
l1xnan committed Apr 17, 2024
1 parent 459061a commit ff14bd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/tables/CanvasTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ff14bd5

Please # to comment.