From 6ea50bffc84aba3a9c311380d4f4f67a2db3b07f Mon Sep 17 00:00:00 2001 From: DecDuck Date: Mon, 7 Apr 2025 16:55:01 +1000 Subject: [PATCH] fix: store page released date --- pages/store/[id]/index.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pages/store/[id]/index.vue b/pages/store/[id]/index.vue index 28c4927..4aeac95 100644 --- a/pages/store/[id]/index.vue +++ b/pages/store/[id]/index.vue @@ -55,9 +55,7 @@ {{ - DateTime.fromJSDate(game.mReleased).toFormat( - "Do MMMM, YYYY" - ) + DateTime.fromISO(game.mReleased).toFormat("d MMMM, yyyy") }} @@ -171,18 +169,17 @@ import { StarIcon } from "@heroicons/vue/24/solid"; import { type Game, type GameVersion } from "@prisma/client"; import { micromark } from "micromark"; import { DateTime } from "luxon"; +import { SerializeObject } from "nitropack"; import { PlatformClient } from "~/composables/types"; -import { ref } from "vue"; -import AddLibraryButton from "~/components/AddLibraryButton.vue"; const route = useRoute(); const gameId = route.params.id.toString(); const user = useUser(); -const game = await $dropFetch( - `/api/v1/games/${gameId}` -); +const game = await $dropFetch< + SerializeObject & { versions: GameVersion[] } +>(`/api/v1/games/${gameId}`); // Preview description (first 30 lines) const showPreview = ref(true);