File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 2020import dev .enola .data .id .UUID_IRI ;
2121
2222import java .net .URI ;
23+ import java .time .Instant ;
2324import java .util .List ;
2425import java .util .Map ;
2526
@@ -35,10 +36,9 @@ public class ToDo {
3536 public final List <String > tags = new java .util .ArrayList <>();
3637 public final Map <String , String > attributes = new java .util .HashMap <>();
3738
38- // TODO https://github.com/enola-dev/enola/issues/1854
39- // public Instant created;
40- // public Instant modified;
41- // public Instant completed;
39+ public Instant created ;
40+ public Instant modified ;
41+ public Instant completed ;
4242 public Boolean isCompleted ;
4343
4444 // status is intentionally omitted, because different backends will have differences.
@@ -60,7 +60,6 @@ public void prepareForSave() {
6060 if (title == null ) throw new IllegalStateException ("Task title is required: " + this );
6161 if (id == null ) id = new UUID_IRI ().toURI ();
6262
63- /* TODO Re-enable after https://github.com/enola-dev/enola/issues/1854
6463 if (created == null ) created = Instant .now ();
6564 else modified = Instant .now ();
6665 if (isCompleted != null ) {
@@ -70,6 +69,5 @@ public void prepareForSave() {
7069 completed = null ;
7170 }
7271 }
73- */
7472 }
7573}
You can’t perform that action at this time.
0 commit comments