Show epoch expiry as no-expiry (#3459)
This commit is contained in:
@@ -23,14 +23,15 @@ export const ACCOUNT_TABLE_COLUMNS = [
|
|||||||
label: "Expiry",
|
label: "Expiry",
|
||||||
elementKey: "expiration",
|
elementKey: "expiration",
|
||||||
renderFunction: (expTime: string) => {
|
renderFunction: (expTime: string) => {
|
||||||
if (expTime) {
|
if (expTime !== "1970-01-01T00:00:00Z") {
|
||||||
const fmtDate = DateTime.fromISO(expTime)
|
const fmtDate = DateTime.fromISO(expTime)
|
||||||
.toUTC()
|
.toUTC()
|
||||||
.toFormat("y/M/d hh:mm:ss z");
|
.toFormat("y/M/d hh:mm:ss z");
|
||||||
|
|
||||||
return <span title={fmtDate}>{fmtDate}</span>;
|
return <span title={fmtDate}>{fmtDate}</span>;
|
||||||
|
} else {
|
||||||
|
return <span>no-expiry</span>;
|
||||||
}
|
}
|
||||||
return "";
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user