diff --git a/src/types/Profile.ts b/src/types/Profile.ts index ec8b5e7a..5103f3ed 100644 --- a/src/types/Profile.ts +++ b/src/types/Profile.ts @@ -62,6 +62,13 @@ export class ProfileClass implements Profile { return import.meta.env.VITE_UNIVERSIME_API + "/profile/image/" + this.id; } + /** + * Created date as `Date` instead of string; + */ + get createdAt() { + return new Date(this.creationDate); + } + /** * Separates a full name into a first name and a last name. *