mirror of
https://github.com/zadam/trilium.git
synced 2026-01-03 13:14:24 +01:00
fix(attachment): deletion time displayed incorrectly (closes #7987)
This commit is contained in:
parent
27c3d4da3c
commit
6b4d069211
@ -210,7 +210,7 @@ function AttachmentInfo({ attachment, isFullDetail }: { attachment: FAttachment,
|
||||
function DeletionAlert({ utcDateScheduledForErasureSince }: { utcDateScheduledForErasureSince: string }) {
|
||||
const scheduledSinceTimestamp = utils.parseDate(utcDateScheduledForErasureSince)?.getTime();
|
||||
// use default value (30 days in seconds) from options_init as fallback, in case getInt returns null
|
||||
const intervalMs = options.getInt("eraseUnusedAttachmentsAfterSeconds") || 2592000 * 1000;
|
||||
const intervalMs = (options.getInt("eraseUnusedAttachmentsAfterSeconds") || 2592000) * 1000;
|
||||
const deletionTimestamp = scheduledSinceTimestamp + intervalMs;
|
||||
const willBeDeletedInMs = deletionTimestamp - Date.now();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user