taskwarrior-tui: Due dates displayed wrongly

Describe the bug

Shown due dates are one day behind the actual due dates.

Example: today is 2022-03-02. My filter settings are status:pending due:today. Taskwarrior-tui lists the tasks which are due today, but the dates in the “Due” column are all shown as 2022-03-01. This also happens without using a “due:” filter.

To Reproduce

No, there are no due dates in the test data.

Steps to reproduce the behavior:

Start the program, look at the due dates.

Screenshot

Environment (please complete the following information):

  • Operating System: Linux (Debian 11)
  • Installation: github releases
  • taskwarrior-tui version: 0.20.1
  • task version: 2.6.1

Additional context and information

Date specific configuration:

dateformat=D.M.Y
dateformat.holiday=YMD
dateformat.report=D.M.Y
dateformat.annotation=D.M.Y
weekstart=Monday
displayweeknumber=yes
due=7

My task database is somewhat old (about 10 years) and large:

% task count
20026

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I think I got a reproduce with:

export TZ=CET
task add foo due:today
taskwarrior-tui

I think TZ=CET behaves like TZ=UTC-1, and the issue also seems to exists for TZ=UTC-$n for any n between 1 and 23.

This should be resolved now! Thanks for reporting and thanks to @bradyt for sharing a reproducible case!