Skip to content

Commit

Permalink
refactor: return date and time for formatDate
Browse files Browse the repository at this point in the history
  • Loading branch information
bdromard committed Dec 17, 2024
1 parent ddc6e77 commit 64ed822
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dashboard/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export function formatDate(date: string) {

export function formatTime(date: string) {
const str_to_date = new Date(date);
const formattedTime = str_to_date.toTimeString();
return formattedTime;
return str_to_date;
}

export function isUUID(uuid: string): uuid is UUID {
Expand Down

0 comments on commit 64ed822

Please sign in to comment.