Activity: Today keeps yesterday's entries after midnight #1099

Open
opened 2026-11-10 13:28:23 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-10 13:28:23 +00:00 (Migrated from github.com)

Leaving Activity open across local midnight keeps the previous day's entries under Today. Selecting Today again does not refresh them.

To reproduce:

  1. In a regtest wallet, create a payment request shortly before local midnight and give it a recognizable note, such as Before midnight.
  2. Open Activity, select Date → Today, and leave the app running past midnight without changing the filter.
  3. The previous day's request remains visible. Open the Date menu and select Today again; the request still remains.

In the recorded run, the request was dated October 16 at 11:55 PM and stayed visible under Today after the local date became October 17. Editing Search later forced the list to reevaluate and correctly excluded the old request. Selecting This week still found it, confirming that the saved record was intact.

dateMatches() uses the current local date when it runs, but the proxy does not invalidate cached matches when that date changes. setDateFilter() also returns immediately when Today is selected again because the filter enum has not changed.

The active Today filter should follow the local date without requiring an unrelated search or filter edit. Reselecting Today should also reevaluate the displayed rows.

Related to the Activity date-filter feature in #569.

Reproduced in the native macOS GUI with Qt 6.9 at d567e3eb2497. The run used a process-local timezone to cross midnight naturally, without changing the system clock. The owning activityfilterproxymodel.cpp is byte-identical in current merged eed1f426fcb6; this is retained runtime evidence with current-source verification, not a fresh run on that revision.

Leaving Activity open across local midnight keeps the previous day's entries under **Today**. Selecting **Today** again does not refresh them. To reproduce: 1. In a regtest wallet, create a payment request shortly before local midnight and give it a recognizable note, such as `Before midnight`. 2. Open Activity, select **Date → Today**, and leave the app running past midnight without changing the filter. 3. The previous day's request remains visible. Open the Date menu and select **Today** again; the request still remains. In the recorded run, the request was dated October 16 at 11:55 PM and stayed visible under Today after the local date became October 17. Editing Search later forced the list to reevaluate and correctly excluded the old request. Selecting **This week** still found it, confirming that the saved record was intact. `dateMatches()` uses the current local date when it runs, but the proxy does not invalidate cached matches when that date changes. `setDateFilter()` also returns immediately when Today is selected again because the filter enum has not changed. The active Today filter should follow the local date without requiring an unrelated search or filter edit. Reselecting Today should also reevaluate the displayed rows. Related to the Activity date-filter feature in [#569](https://github.com/bitcoin-core/gui-qml/issues/569). Reproduced in the native macOS GUI with Qt 6.9 at `d567e3eb2497`. The run used a process-local timezone to cross midnight naturally, without changing the system clock. The owning `activityfilterproxymodel.cpp` is byte-identical in current merged `eed1f426fcb6`; this is retained runtime evidence with current-source verification, not a fresh run on that revision.
Sign in to join this conversation.
No description provided.