mirror of
https://github.com/go-vikunja/app
synced 2024-06-05 12:09:52 +00:00
list and namespace toUtc for DateTime in toJSON
This commit is contained in:
parent
88c785f768
commit
0590e4c10e
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user