forked from sombochea/verdaccio-ui
fix: formatDate (#308)
This commit is contained in:
parent
42d3bb8508
commit
33f873a8c7
@ -55,7 +55,7 @@ export function formatRepository(repository: any): string | null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function formatDate(lastUpdate: string | number): string {
|
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 {
|
export function formatDateDistance(lastUpdate: Date | string | number): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user