mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-13 21:01:32 +08:00
fix: #1179
This commit is contained in:
parent
f8954fe9ed
commit
763afa9be7
@ -66,7 +66,7 @@ const CertificateList = () => {
|
||||
sorter: true,
|
||||
sortOrder: sorter.columnKey === "validity" ? sorter.order : void 0,
|
||||
render: (_, record) => {
|
||||
const total = dayjs(record.validityNotAfter).diff(dayjs(record.created), "d") + 1;
|
||||
const total = dayjs(record.validityNotAfter).diff(dayjs(record.validityNotBefore), "d") + 1;
|
||||
const isRevoked = record.isRevoked;
|
||||
const isExpired = dayjs().isAfter(dayjs(record.validityNotAfter));
|
||||
const leftHours = dayjs(record.validityNotAfter).diff(dayjs(), "h");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user