1
0
mirror of https://github.com/go-vikunja/app synced 2024-06-02 18:49:47 +00:00

list and namespace toUtc for DateTime in toJSON

This commit is contained in:
Paul Nettleton 2022-09-07 13:02:15 -05:00
parent 88c785f768
commit 0590e4c10e
2 changed files with 4 additions and 4 deletions

View File

@ -43,8 +43,8 @@ class TaskList {
'title': title,
'description': description,
'owner': owner.toJSON(),
'created': created.toIso8601String(),
'updated': updated.toIso8601String(),
'created': created.toUtc().toIso8601String(),
'updated': updated.toUtc().toIso8601String(),
'namespace_id': namespaceId
};
}

View File

@ -26,8 +26,8 @@ class Namespace {
Map<String, dynamic> toJSON() => {
'id': id != -1 ? id : null,
'created': created.toIso8601String(),
'updated': updated.toIso8601String(),
'created': created.toUtc().toIso8601String(),
'updated': updated.toUtc().toIso8601String(),
'title': title,
'owner': owner.toJSON(),
'description': description