diff --git a/tests/t9999-testsuite_example.sh b/tests/t9999-testsuite_example.sh index 18b93da..7ca889e 100755 --- a/tests/t9999-testsuite_example.sh +++ b/tests/t9999-testsuite_example.sh @@ -92,7 +92,7 @@ TODO: Report file updated. >>> todo.sh report TODO: $HOME/todo.txt archived. TODO: Report file updated. -2009-02-13-04:40:00 5 1 +2009-02-13T04:40:00 5 1 >>> todo.sh append g a usage: todo.sh append ITEM# "TEXT TO APPEND" @@ -171,12 +171,12 @@ TODO: 3 marked as done. x 2009-02-13 smell the coffee +wakeup TODO: $HOME/todo.txt archived. TODO: Report file updated. -2009-02-13-04:40:00 5 2 +2009-02-13T04:40:00 5 2 >>> todo.sh report TODO: $HOME/todo.txt archived. TODO: Report file updated. -2009-02-13-04:40:00 5 2 +2009-02-13T04:40:00 5 2 >>> todo.sh remdup Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] diff --git a/todo.sh b/todo.sh index 83f2502..a37be5c 100755 --- a/todo.sh +++ b/todo.sh @@ -1222,7 +1222,7 @@ note: PRIORITY must be anywhere from A to Z." TOTAL=$( sed -n '$ =' "$TODO_FILE" ) TDONE=$( sed -n '$ =' "$DONE_FILE" ) - echo "$(date +%Y-%m-%d-%T) ${TOTAL:-0} ${TDONE:-0}" >> "$REPORT_FILE" + echo "$(date +%Y-%m-%dT%T) ${TOTAL:-0} ${TDONE:-0}" >> "$REPORT_FILE" [ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated." sed -ne '$p' "$REPORT_FILE" ;;