mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 01:02:14 +08:00
New note: fix 'created' not being serialized
This commit is contained in:
@ -35,6 +35,7 @@ class Note with ChangeNotifier implements Comparable<Note> {
|
|||||||
|
|
||||||
Note.newNote(this.parent) {
|
Note.newNote(this.parent) {
|
||||||
_created = DateTime.now();
|
_created = DateTime.now();
|
||||||
|
_data.props['created'] = toIso8601WithTimezone(created);
|
||||||
_filePath = p.join(parent.folderPath, getFileName(this));
|
_filePath = p.join(parent.folderPath, getFileName(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user