Use ISO 8601 timestamp format.

IMO 2012-01-14T14:49 looks better than the messy -*-*-*- of 2012-01-14-14:49, and is more aligned with standards.
This commit is contained in:
Ingo Karkat
2012-01-14 15:04:55 +01:00
parent a8df23ec3c
commit 45e9dc7550
2 changed files with 4 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ TODO: 5 of 5 tasks shown
>>> todo.sh report >>> todo.sh report
TODO: Report file updated. TODO: Report file updated.
2009-02-13-04:40:00 5 1 2009-02-13T04:40:00 5 1
>>> todo.sh append g a >>> todo.sh append g a
usage: todo.sh append ITEM# "TEXT TO APPEND" usage: todo.sh append ITEM# "TEXT TO APPEND"
@@ -163,11 +163,11 @@ TODO: 3 marked as done.
>>> todo.sh report >>> todo.sh report
TODO: Report file updated. TODO: Report file updated.
2009-02-13-04:40:00 5 2 2009-02-13T04:40:00 5 2
>>> todo.sh report >>> todo.sh report
TODO: Report file updated. TODO: Report file updated.
2009-02-13-04:40:00 5 2 2009-02-13T04:40:00 5 2
>>> todo.sh remdup >>> todo.sh remdup
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]

View File

@@ -1193,7 +1193,7 @@ note: PRIORITY must be anywhere from A to Z."
TOTAL=$( sed -n '$ =' "$TODO_FILE" ) TOTAL=$( sed -n '$ =' "$TODO_FILE" )
TDONE=$( sed -n '$ =' "$DONE_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." [ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated."
sed -ne '$p' "$REPORT_FILE" sed -ne '$p' "$REPORT_FILE"
;; ;;