make all the timestamp local time and hovering shows UTC timestamp (#1164)

This commit is contained in:
Shuchang Zheng
2024-11-11 13:03:40 -08:00
committed by GitHub
parent c1c2b5ca24
commit 068535b719
10 changed files with 76 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
import { basicTimeFormat } from "@/util/timeFormat";
import { basicLocalTimeFormat, basicTimeFormat } from "@/util/timeFormat";
import { cn } from "@/util/utils";
import {
ExclamationTriangleIcon,
@@ -241,8 +241,9 @@ function Workflows() {
onClick={(event) => {
handleRowClick(event, workflow.workflow_permanent_id);
}}
title={basicTimeFormat(workflow.created_at)}
>
{basicTimeFormat(workflow.created_at)}
{basicLocalTimeFormat(workflow.created_at)}
</TableCell>
<TableCell>
<div className="flex justify-end gap-2">
@@ -384,8 +385,11 @@ function Workflows() {
<TableCell className="w-1/5">
<StatusBadge status={workflowRun.status} />
</TableCell>
<TableCell className="w-1/5">
{basicTimeFormat(workflowRun.created_at)}
<TableCell
className="w-1/5"
title={basicTimeFormat(workflowRun.created_at)}
>
{basicLocalTimeFormat(workflowRun.created_at)}
</TableCell>
</TableRow>
);