mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 15:52:39 +10:00
fix: store page released date
This commit is contained in:
@ -55,9 +55,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-zinc-400">
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-zinc-400">
|
||||||
{{
|
{{
|
||||||
DateTime.fromJSDate(game.mReleased).toFormat(
|
DateTime.fromISO(game.mReleased).toFormat("d MMMM, yyyy")
|
||||||
"Do MMMM, YYYY"
|
|
||||||
)
|
|
||||||
}}
|
}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -171,18 +169,17 @@ import { StarIcon } from "@heroicons/vue/24/solid";
|
|||||||
import { type Game, type GameVersion } from "@prisma/client";
|
import { type Game, type GameVersion } from "@prisma/client";
|
||||||
import { micromark } from "micromark";
|
import { micromark } from "micromark";
|
||||||
import { DateTime } from "luxon";
|
import { DateTime } from "luxon";
|
||||||
|
import { SerializeObject } from "nitropack";
|
||||||
import { PlatformClient } from "~/composables/types";
|
import { PlatformClient } from "~/composables/types";
|
||||||
import { ref } from "vue";
|
|
||||||
import AddLibraryButton from "~/components/AddLibraryButton.vue";
|
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const gameId = route.params.id.toString();
|
const gameId = route.params.id.toString();
|
||||||
|
|
||||||
const user = useUser();
|
const user = useUser();
|
||||||
|
|
||||||
const game = await $dropFetch<Game & { versions: GameVersion[] }>(
|
const game = await $dropFetch<
|
||||||
`/api/v1/games/${gameId}`
|
SerializeObject<Game> & { versions: GameVersion[] }
|
||||||
);
|
>(`/api/v1/games/${gameId}`);
|
||||||
|
|
||||||
// Preview description (first 30 lines)
|
// Preview description (first 30 lines)
|
||||||
const showPreview = ref(true);
|
const showPreview = ref(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user