From 369b70bb19c3144efa46640d85efc3f35a36ea49 Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Sat, 9 Nov 2024 01:28:41 -0600 Subject: [PATCH] Use UTC as the default time zone when converting if no other time zone is specified --- thrimbletrimmer/src/common/convertTime.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimbletrimmer/src/common/convertTime.tsx b/thrimbletrimmer/src/common/convertTime.tsx index df3e7b2..1538e3d 100644 --- a/thrimbletrimmer/src/common/convertTime.tsx +++ b/thrimbletrimmer/src/common/convertTime.tsx @@ -2,7 +2,7 @@ import { l } from "vite/dist/node/types.d-aGj9QkWt"; import { DateTime } from "../external/luxon.min"; export function dateTimeFromWubloaderTime(wubloaderTime: string): DateTime | null { - const dt = DateTime.fromISO(wubloaderTime); + const dt = DateTime.fromISO(wubloaderTime, { zone: "UTC" }); if (dt.isValid) { return dt; }