Skip to content

Commit

Permalink
feat(dashboard): add full utc date for updated at on hover (#6948)
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge authored Nov 12, 2024
1 parent 99c0906 commit fd292f8
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions apps/dashboard/src/components/workflow-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,24 @@ export const WorkflowRow = ({ workflow }: WorkflowRowProps) => {
<TableCell>
<WorkflowTags tags={workflow.tags || []} />
</TableCell>
<TableCell className="text-foreground-600 text-sm font-medium">
{new Date(workflow.updatedAt).toLocaleDateString('en-US', {
year: 'numeric',
month: 'short',
day: 'numeric',
})}
</TableCell>

<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<TableCell className="text-foreground-600 text-sm font-medium">
{new Date(workflow.updatedAt).toLocaleDateString('en-US', {
year: 'numeric',
month: 'short',
day: 'numeric',
})}
</TableCell>
</TooltipTrigger>
<TooltipPortal>
<TooltipContent>{new Date(workflow.updatedAt).toUTCString()}</TooltipContent>
</TooltipPortal>
</Tooltip>
</TooltipProvider>

<TableCell className="w-1">
<DropdownMenu>
<DropdownMenuTrigger asChild>
Expand Down

0 comments on commit fd292f8

Please sign in to comment.