website refactor
This commit is contained in:
@@ -18,6 +18,8 @@ import { Result } from '@/lib/contracts/Result';
|
||||
import type { Service } from '@/lib/contracts/services/Service';
|
||||
import type { HomeDataDTO } from '@/lib/types/dtos/HomeDataDTO';
|
||||
|
||||
import { DateDisplay } from '@/lib/display-objects/DateDisplay';
|
||||
|
||||
/**
|
||||
* HomeService
|
||||
*
|
||||
@@ -54,7 +56,7 @@ export class HomeService implements Service {
|
||||
id: r.id,
|
||||
track: r.track,
|
||||
car: r.car,
|
||||
formattedDate: new Date(r.scheduledAt).toLocaleDateString(),
|
||||
formattedDate: DateDisplay.formatShort(r.scheduledAt),
|
||||
})),
|
||||
topLeagues: leaguesDto.leagues.slice(0, 4).map(l => ({
|
||||
id: l.id,
|
||||
|
||||
Reference in New Issue
Block a user