From 1462250727bc6a24b3fdd7e59d9b1699ec8de749 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Sat, 10 Jan 2026 13:32:23 +0100 Subject: [PATCH] chore: remove "about", "over", "almost" from timeago --- Dockerfile | 4 ++-- app/client/lib/datetime.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6423c386..159ba404 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,7 @@ COPY --from=deps /deps/shoutrrr /usr/local/bin/shoutrrr COPY ./package.json ./bun.lock ./ -RUN bun install --frozen-lockfile --verbose --ignore-scripts +RUN bun install --frozen-lockfile --ignore-scripts COPY . . @@ -98,7 +98,7 @@ ENV NODE_ENV="production" WORKDIR /app COPY --from=builder /app/package.json ./ -RUN bun install --production --frozen-lockfile --verbose +RUN bun install --production --frozen-lockfile COPY --from=deps /deps/restic /usr/local/bin/restic COPY --from=deps /deps/rclone /usr/local/bin/rclone diff --git a/app/client/lib/datetime.ts b/app/client/lib/datetime.ts index 1b107d48..d183dd3f 100644 --- a/app/client/lib/datetime.ts +++ b/app/client/lib/datetime.ts @@ -86,7 +86,8 @@ export function formatTimeAgo(date: Date | string | number | null | undefined): const timeAgo = formatDistanceToNow(d, { addSuffix: true, + includeSeconds: true, }); - return timeAgo; + return timeAgo.replace("about ", "").replace("over ", "").replace("almost ", "").replace("less than ", ""); }