fix: formatDate (#308)

This commit is contained in:
Thomas Klein 2019-12-06 18:28:37 +01:00 committed by Juan Picado @jotadeveloper
parent 42d3bb8508
commit 33f873a8c7

View File

@ -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 {