aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/todos.json
diff options
context:
space:
mode:
authorIngo Richter <ingo.richter+github@gmail.com>2017-04-08 18:24:16 -0700
committerIngo Richter <ingo.richter+github@gmail.com>2017-04-08 18:24:16 -0700
commitd2df602c25afe3193e2b4d434042b47de64a00e6 (patch)
treedb5b17db8d45ff1a96a52fc8c15ded3713aa1c3e /todolist/todos.json
parent146f19e1dc8143096bca6bfd0adf2e1f8d9be7b7 (diff)
Add `CompletedDate` to todo item.
`CompletedDate` will save a timestamp in ISO8601 format (Internet date/ time format to preserve timezone information) Added a new `Complete` and `Uncomplete` method for todo_item. Currently a todo has a boolean flag and the timestamp to indicate that the item is completed. The boolean flag could be kept for backward compatibility (reading the json into memory), but should be omitted for files being written.
Diffstat (limited to 'todolist/todos.json')
-rw-r--r--todolist/todos.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolist/todos.json b/todolist/todos.json
index bc147d1..7f511ed 100644
--- a/todolist/todos.json
+++ b/todolist/todos.json
@@ -1 +1 @@
-[{"id":1,"subject":"this is the first subject","projects":["test1"],"contexts":["root"],"due":"2016-04-04","completed":false,"archived":true,"isPriority":false},{"id":2,"subject":" audit userify for 2FA","projects":["test1"],"contexts":["root","more"],"due":"","completed":true,"archived":false,"isPriority":false}] \ No newline at end of file
+[{"id":1,"subject":"this is the first subject","projects":["test1"],"contexts":["root"],"due":"2016-04-04","completed":false,"completedDate":"","archived":true,"isPriority":false},{"id":2,"subject":" audit userify for 2FA","projects":["test1"],"contexts":["root","more"],"due":"","completed":true,"completedDate":"","archived":false,"isPriority":false}] \ No newline at end of file