fix(ui) - user entity createdAt

This commit is contained in:
Shekar Siri 2023-02-03 11:12:55 +01:00
parent d352556570
commit ff9efba1cb

View file

@ -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