Skip to content

Commit

Permalink
change: creationDate as Date instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
NiiMiyo committed Nov 29, 2023
1 parent fd36cbe commit d2bb7a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types/Profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit d2bb7a3

Please sign in to comment.