Skip to content

[BUG] Time-based filters will show tasks starting outside the specified period #2343

Description

@glizzy-g

Describe the bug

Time-based filters (i.e. filter by Start(ed) today, etc) will show tasks from outside the filter period (i.e. Start(ed) today might show tasks from last night or tomorrow morning depending on timezone).

To Reproduce

  1. Use a system timezone other than UTC.
  2. Create a task with a start date of today and with a time greater than the offset of the system timezone (i.e. for a +11:30 timezone set the time to after 11:30am)
  3. Create a task with a start date of TOMORROW and with a time LESS THAN the offset of the system timezone (i.e. for a +11:30 timezone set the time to BEFORE 11:30am)
  4. Apply only the filter 'Start today' in the filters tab.
  5. Both the task starting today AND the task starting tomorrow will be shown.

Note that neither attaching the system timezone to the task nor changing the app setting 'App Settings > Select display of time with timezone' change this behaviour.

Expected behavior

Only the task starting today should be shown.

Screenshots

Image Image

Device and version

  • Device: Armor Mini 20 Pro
  • Android version: Android 15
  • jtx Board version: 2.16.02.ose
  • Downloaded from: F-Droid repo (through Droid-ify)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions