mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
fix: #1179
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user