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

@@ -1,6 +1,6 @@
import { Skeleton } from "@/components/ui/skeleton";
import { useWorkflowLastRunQuery } from "../hooks/useWorkflowLastRunQuery";
import { basicTimeFormat } from "@/util/timeFormat";
import { basicLocalTimeFormat, basicTimeFormat } from "@/util/timeFormat";
type Props = {
workflowId: string;
@@ -21,7 +21,11 @@ function LastRunAtTime({ workflowId }: Props) {
return <span>N/A</span>;
}
return <span>{basicTimeFormat(data.time)}</span>;
return (
<span title={basicTimeFormat(data.time)}>
{basicLocalTimeFormat(data.time)}
</span>
);
}
export { LastRunAtTime };