Skip to content

Refresh relative due date display in task list - #3235

Open
xhon-pelushi wants to merge 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/3203-stale-relative-due-date
Open

Refresh relative due date display in task list#3235
xhon-pelushi wants to merge 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/3203-stale-relative-due-date

Conversation

@xhon-pelushi

@xhon-pelushi xhon-pelushi commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • Relative due-date labels in the task list (Today / Yesterday / …) are recomputed on a timer so they stay in sync with the sidebar detail view.
  • Fixes the mismatch where a task left on screen across midnight kept a stale list label while the sidebar showed the correct one.

Fixes #3203

Test plan

  • Open a task due “today”, leave the list open across midnight (or temporarily advance system time), confirm list label updates to “Yesterday” without reopening the task
  • Confirm sidebar due-date label still matches the list label after the refresh
  • Confirm interval is cleared when navigating away (no console errors / no leftover timers)

The due date shown in the task list (e.g. "Today", "Yesterday") was
computed once when the task item was rendered and never updated
afterwards, since moment().calendar() defaults to the time at
evaluation and Vue only recomputes when a tracked reactive dependency
changes. If a task stayed on screen for a while (e.g. across midnight),
the list kept showing a stale relative label while the sidebar, which
re-mounts per task selection, showed the correct one.

Track a periodically updated timestamp and pass it as the reference
time to calendar(), so the computed properties stay reactive to the
passage of time.

Fixes nextcloud#3203

Signed-off-by: xhon-pelushi <xhon@pelushi.com>
@xhon-pelushi
xhon-pelushi force-pushed the fix/3203-stale-relative-due-date branch from d780f91 to 0cd54f2 Compare August 14, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

shown dates for identical task differ

1 participant