You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
apps/space timeAgo helper mutates input and never returns (always undefined) #10377
apps/space/helpers/date-time.helper.ts exports timeAgo() whose body only mutates time in a switch and falls off the end — no return statement, so it returns undefined for every input (number, string, Date).
Currently latent: rg "timeAgo" apps/space shows zero importers — the caller (comment-detail-card.tsx) already uses the shared, correct calculateTimeAgo from @plane/utils. The local export is dead, broken code that invites future misuse.
Fix
Delete the dead timeAgo export from apps/space/helpers/date-time.helper.ts. packages/utils/src/datetime.tscalculateTimeAgo remains the canonical helper.
Filed against the wrong fork — the actual fix landed in our standalone org mirror (The1Studio/plane #258/#259, merged). Upstream contribution left open in #10379; the same defect exists upstream.
Activity
h3nr1-d14z commentedon Nov 24, 2026
Filed against the wrong fork — the actual fix landed in our standalone org mirror (The1Studio/plane #258/#259, merged). Upstream contribution left open in #10379; the same defect exists upstream.