Skip to content

Conversation

@karkhaz
Copy link

@karkhaz karkhaz commented Apr 11, 2025

TODOTXT_DATE_FORMAT sets the format of creation and completion dates. Prior to this commit, the format was hard-coded to %Y-%m-%d.

This commit fixes #456.

Reviewers: test this feature by setting TODOTXT_DATE_FORMAT.

export TODOTXT_DATE_FORMAT="%Y-%m-%dT%H:%M:%S%z"
t add Solve the halting problem
t list
# 1 2009-02-13T04:40:00+0000 Solve the halting problem
t done 1
t listall
# 0 x 2009-02-13T04:40:00+0000 2009-02-13T04:40:00+0000 Solve the halting problem

Before submitting a pull request, please make sure the following is done:

  • Fork the repository and create your branch from master.
  • If you've added code that should be tested, add tests!
  • Ensure the test suite passes.
  • Lint your code with ShellCheck.

There are a couple of quote warnings, not related to my code. Happy to fix in a different commit if needed.

  • Include a human-readable description of what the pull request is trying to accomplish.
  • Steps for the reviewer(s) on how they can manually QA the changes.
  • Have a fixes #XX reference to the issue that this pull request fixes.

TODOTXT_DATE_FORMAT sets the format of creation and completion dates.
Prior to this commit, the format was hard-coded to %Y-%m-%d.

This commit fixes todotxt#456.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creation/completion dates don't include times

1 participant