diff --git a/src/app/(pages)/api/player/history/route.ts b/src/app/(pages)/api/player/history/route.ts index 194490d..f5ed437 100644 --- a/src/app/(pages)/api/player/history/route.ts +++ b/src/app/(pages)/api/player/history/route.ts @@ -23,7 +23,7 @@ export async function GET(request: NextRequest) { if (shouldCreatePlayer && foundPlayer == null) { foundPlayer = await PlayerModel.create({ _id: id, - trackedSince: new Date(), + trackedSince: new Date().toISOString(), }); const response = await scoresaberService.lookupPlayer(id, true); if (response != undefined) { diff --git a/src/components/player/player-tracked-status.tsx b/src/components/player/player-tracked-status.tsx index 7d611c4..85ecfb8 100644 --- a/src/components/player/player-tracked-status.tsx +++ b/src/components/player/player-tracked-status.tsx @@ -34,7 +34,7 @@ export default function PlayerTrackedStatus({ player }: Props) { display={

This player is having their statistics tracked!

-

Tracked Since: {format(data.trackedSince!)}

+

Tracked Since: {format(new Date(data.trackedSince!))}

} side="bottom"