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:
2
todo.sh
2
todo.sh
@@ -1193,7 +1193,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"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user