mirror of
https://github.com/SomboChea/ui
synced 2026-01-20 18:15:51 +07:00
fix: formatDate (#308)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user