chore: remove "about", "over", "almost" from timeago

This commit is contained in:
Nicolas Meienberger 2026-01-10 13:32:23 +01:00
parent 881e8f8abe
commit 1462250727
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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 ", "");
}