Skip to content

[TW-1824] countdown (date format) is not working properly #1840

@taskwarrior

Description

@taskwarrior

Eric Hymowitz on 2016-07-04T01:21:34Z says:

The "countdown" date format is described in the documentation (and from Paul's email) as being an ISO-8601-formatted time duration for the length of time until ... whatever (for example, "due.countdown" is how much time until the task is due.)

In reality, the "due.countdown" appears to be incorrectly defined as "the negative of due.relative but never less than zero" or "the amount of time elapsed since the due date" and formatted the same way as "due.relative".

(I have not tested other date fields with countdown)

Replicate problem thusly:

  1. Have some tasks that are both completed/overdue and waiting/not yet completed.

  2. Create a new report with these lines in .taskrc:
    report.cccc.columns=id,due.relative,due,due.countdown,description
    report.cccc.labels=ID,Rel,DueDate,Cdn,Description

  3. Run the report

herman-pts/0:~% task cccc

ID Rel  DueDate    Cdn Description               
 1 -6w  2016-05-19  6w check the patches         
 3 -5w  2016-05-24  5w install the backup disk   
 4 -4w  2016-05-31  4w last day of the month     
 9 1d   2016-07-05     install the backup disk   
10 3d   2016-07-07     check the patches         
11 3w   2016-07-30     last day of the month

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions