Activity can hide an entire custom date range when the following local date was skipped #1108

Open
opened 2026-11-10 16:02:42 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-10 16:02:42 +00:00 (Migrated from github.com)

A December 28–29, 2011 date range in Pacific/Apia showed an empty Activity list and exported only the CSV header, although the wallet had four transactions on those dates.

  1. Start the regtest app with TZ=Pacific/Apia. Set the mock time to December 28, 2011 before creating the wallet. Advance the mock time to mine one block to the wallet on December 28, three on December 29, and two on December 31, using local dates.
  2. Open Activity → Date → Custom range, select December 28 as the start and December 29 as the end, and click Apply. Export the filtered list to CSV.

The unfiltered list contained all six transactions. Changing only the date range gave these results in the same wallet.

Local dates in December 2011 Expected transactions Activity rows CSV data rows
28 only 1 1 1
29 only 3 0 0
28 through 29 4 0 0
29 through 31 5 5 5

Both endpoints of the selected range should be inclusive. The filter uses the start of the next local date as its exclusive upper bound. In Apia, December 29 was followed by December 31, so asking for the start of December 30 produces an invalid bound. The CSV exporter then writes the already filtered rows. Date filter, CSV export.

Reproduced on merged qt6 at eed1f426fcb6, macOS arm64 with Qt 6.9. The test selected the dates through the calendar and supplied a filename to Activity’s export function. This follows up on the custom date-range support tracked in closed #707.

A December 28–29, 2011 date range in `Pacific/Apia` showed an empty Activity list and exported only the CSV header, although the wallet had four transactions on those dates. 1. Start the regtest app with `TZ=Pacific/Apia`. Set the mock time to December 28, 2011 before creating the wallet. Advance the mock time to mine one block to the wallet on December 28, three on December 29, and two on December 31, using local dates. 2. Open **Activity → Date → Custom range**, select December 28 as the start and December 29 as the end, and click **Apply**. Export the filtered list to CSV. The unfiltered list contained all six transactions. Changing only the date range gave these results in the same wallet. | Local dates in December 2011 | Expected transactions | Activity rows | CSV data rows | | --- | ---: | ---: | ---: | | 28 only | 1 | 1 | 1 | | 29 only | 3 | 0 | 0 | | 28 through 29 | 4 | 0 | 0 | | 29 through 31 | 5 | 5 | 5 | Both endpoints of the selected range should be inclusive. The filter uses the start of the next local date as its exclusive upper bound. In Apia, December 29 was followed by December 31, so asking for the start of December 30 produces an invalid bound. The CSV exporter then writes the already filtered rows. [Date filter](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/models/activityfilterproxymodel.cpp#L519), [CSV export](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/models/activityfilterproxymodel.cpp#L567). Reproduced on merged `qt6` at `eed1f426fcb6`, macOS arm64 with Qt 6.9. The test selected the dates through the calendar and supplied a filename to Activity’s export function. This follows up on the custom date-range support tracked in closed [#707](https://github.com/bitcoin-core/gui-qml/issues/707).
Sign in to join this conversation.
No description provided.