fix(ui) - user entity createdAt
This commit is contained in:
parent
d352556570
commit
ff9efba1cb
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ export default class User {
|
|||
this.userId = json.userId || json.id; // TODO api returning id
|
||||
this.name = json.name;
|
||||
this.email = json.email;
|
||||
this.createdAt = json.createdAt && DateTime.fromMillis(json.createdAt || 0)
|
||||
this.createdAt = json.createdAt && DateTime.fromMillis(new Date(json.createdAt).getTime())
|
||||
this.isAdmin = json.admin
|
||||
this.isSuperAdmin = json.superAdmin
|
||||
this.isJoined = json.joined
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue