From 9d4bbfd32a0060ba6928476aad74d32cc0c7cfeb 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; }