From 33f873a8c78e419a36e3a29f7ea216714172b174 Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Fri, 6 Dec 2019 18:28:37 +0100 Subject: [PATCH] fix: formatDate (#308) --- src/utils/package.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/package.ts b/src/utils/package.ts index d92951e..b4512c7 100644 --- a/src/utils/package.ts +++ b/src/utils/package.ts @@ -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 {