Skip to content

Commit

Permalink
feat: add timestamp on hovercard
Browse files Browse the repository at this point in the history
  • Loading branch information
havtro committed Jan 6, 2025
1 parent 585d20d commit 8d573df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/log/logTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default function LogTable() {
<Table.DataCell>{deployer}</Table.DataCell>
<Table.DataCell>{version ? version: <div><TrashIcon title="Undeployed"/>Undeployed</div>}</Table.DataCell>
{/* <Table.DataCell>{deployed_timestamp ? deployed_timestamp.toLocaleDateString : ""}</Table.DataCell> */}
<Table.DataCell>{moment(deployed_timestamp).fromNow()}</Table.DataCell>
<Table.DataCell>{moment(deployed_timestamp).fromNow() + " (" + moment(deployed_timestamp).format('lll') + ")"}</Table.DataCell>
</Table.Row>
)
})}
Expand Down
2 changes: 1 addition & 1 deletion src/app/versionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function CellContent({

return (
<>
<div style={{fontSize: "1.0rem"}}>{moment(versionEntry.momentTimestamp).fromNow() + " by: " + versionEntry.deployer}</div>
<div style={{fontSize: "1.0rem"}}>{moment(versionEntry.momentTimestamp).fromNow() +" (" + moment(versionEntry.momentTimestamp).format('lll') + ") by: " + versionEntry.deployer}</div>
{versionEntry.newDeployment ? newDeploymentLegend : null}
</>
)
Expand Down

0 comments on commit 8d573df

Please sign in to comment.