From 6b4d069211c74d484745de9c99ac5b5e1387d798 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 25 Dec 2025 11:34:49 +0200 Subject: [PATCH] fix(attachment): deletion time displayed incorrectly (closes #7987) --- apps/client/src/widgets/type_widgets/Attachment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/type_widgets/Attachment.tsx b/apps/client/src/widgets/type_widgets/Attachment.tsx index 341f2d30b..f270bcdae 100644 --- a/apps/client/src/widgets/type_widgets/Attachment.tsx +++ b/apps/client/src/widgets/type_widgets/Attachment.tsx @@ -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();