Skip to content

Export fails for dates before 1980 #3572

@stefan-sherwood

Description

@stefan-sherwood

To report a bug...

  • What command(s) did you run?

task add description:"Test date" modified:"1970-01-01T00:00:00Z"

If I do the identical command with a slightly different date in the same format, it correctly adds the task with the given time/date,

$ task add description:"Test date" modified:"1970-01-01T00:00:01Z"
Created task 44.

Note that the date format I gave is correct, both according to ISO-8601 rules and according to taskwarrior specification for supported dates.

  • What did you expect to happen?

Task to be added.

  • What actually happened?

Error message: '1970-01-01T00:00:00Z' is not a valid date in the 'Y-M-D' format.

Task was not added.

  • Paste the output of the task diag command.
task 3.0.2
   Platform: Linux

Compiler
    Version: 13.2.0
       Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
 Compliance: C++17

Build Features
      CMake: 3.27.4
    libuuid: libuuid + uuid_unparse_lower
 Build type: release

Configuration
       File: /home/stefan/.taskrc (found), 1381 bytes, mode 100644
       Data: /home/stefan/.task (found), dir, mode 40755
    Locking: Enabled
         GC: Enabled
Hooks
     System: Enabled
   Location: /home/stefan/.task/hooks
             (-none-)

Tests
   Terminal: 350x113
       Dups: Scanned 51 tasks for duplicate UUIDs:
             No duplicates found
 Broken ref: Scanned 51 tasks for broken references:
             No broken references found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions