Refresh relative due date display in task list - #3235
Open
xhon-pelushi wants to merge 1 commit into
Open
Conversation
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
force-pushed
the
fix/3203-stale-relative-due-date
branch
from
August 14, 2026 03:48
d780f91 to
0cd54f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Today/Yesterday/ …) are recomputed on a timer so they stay in sync with the sidebar detail view.Fixes #3203
Test plan