Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix: formatDate (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkn authored and juanpicado committed Dec 6, 2019
1 parent 42d3bb8 commit 33f873a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function formatRepository(repository: any): string | null {
}

export function formatDate(lastUpdate: string | number): string {
return dayjs(new Date(lastUpdate)).format('DD.MM.YYYY, HH:mm:ss');
return dayjs(new Date(lastUpdate)).format(TIMEFORMAT);
}

export function formatDateDistance(lastUpdate: Date | string | number): string {
Expand Down

0 comments on commit 33f873a

Please sign in to comment.