Skip to content

Commit d9c64bf

Browse files
committed
fix: Re-enable Instant fields in ToDo (fixes #1854)
1 parent 2823fd1 commit d9c64bf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

java/dev/enola/todo/ToDo.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import dev.enola.data.id.UUID_IRI;
2121

2222
import java.net.URI;
23+
import java.time.Instant;
2324
import java.util.List;
2425
import 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
}

0 commit comments

Comments
 (0)