mirror of
https://github.com/SomboChea/ui
synced 2024-11-24 06:54:27 +07:00
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