From c410fcbffec2623dd5b967d0a39022ef24e839b3 Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Sun, 10 Sep 2023 15:30:33 -0300 Subject: [PATCH] Fix news date formatting as UTC. (#49) --- website/src/.vitepress/theme/components/News.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/.vitepress/theme/components/News.vue b/website/src/.vitepress/theme/components/News.vue index 7b70d93d..28f3302f 100644 --- a/website/src/.vitepress/theme/components/News.vue +++ b/website/src/.vitepress/theme/components/News.vue @@ -2,7 +2,10 @@ import { IconChevronRight } from "@iconify-prerendered/vue-mdi" import { data as newsList } from "../data/news.data" -const dateFormatter = new Intl.DateTimeFormat("en", { dateStyle: "medium" }) +const dateFormatter = new Intl.DateTimeFormat("en", { + dateStyle: "medium", + timeZone: "UTC", +})