Skip to content

Commit

Permalink
Rename formatUTCPrettyString to localizeUTCPretty for clarity and upd…
Browse files Browse the repository at this point in the history
…ate formatGalaxyPrettyDateString to use the new function for improved localization.
  • Loading branch information
dannon committed Dec 9, 2024
1 parent cbb5ed0 commit cc2f25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/utils/dates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export function galaxyTimeToDate(galaxyTime: string): Date {
return date;
}

export function formatUTCPrettyString(utcDate: Date): string {
export function localizeUTCPretty(utcDate: Date): string {
return format(utcDate, "eeee MMM do H:mm:ss yyyy zz");
}

export function formatGalaxyPrettyDateString(galaxyTime: string): string {
const date = galaxyTimeToDate(galaxyTime);
return formatUTCPrettyString(date);
return localizeUTCPretty(date);
}

0 comments on commit cc2f25d

Please sign in to comment.