Skip to content

Commit

Permalink
Merge branch 'master' into disable-pubkey-download
Browse files Browse the repository at this point in the history
  • Loading branch information
ramondeklein authored Oct 26, 2024
2 parents 3128f7f + 3d8b98f commit c9882cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web-app/src/screens/Console/Account/AccountUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ export const ACCOUNT_TABLE_COLUMNS = [
label: "Expiry",
elementKey: "expiration",
renderFunction: (expTime: string) => {
if (expTime) {
if (expTime !== "1970-01-01T00:00:00Z") {
const fmtDate = DateTime.fromISO(expTime)
.toUTC()
.toFormat("y/M/d hh:mm:ss z");

return <span title={fmtDate}>{fmtDate}</span>;
} else {
return <span>no-expiry</span>;
}
return "";
},
},
{
Expand Down

0 comments on commit c9882cf

Please sign in to comment.