Use UTC as the default time zone when converting if no other time zone is specified

ElementalAlchemist 2 weeks ago
parent 1c842d9d16
commit 369b70bb19

@ -2,7 +2,7 @@ import { l } from "vite/dist/node/types.d-aGj9QkWt";
import { DateTime } from "../external/luxon.min"; import { DateTime } from "../external/luxon.min";
export function dateTimeFromWubloaderTime(wubloaderTime: string): DateTime | null { export function dateTimeFromWubloaderTime(wubloaderTime: string): DateTime | null {
const dt = DateTime.fromISO(wubloaderTime); const dt = DateTime.fromISO(wubloaderTime, { zone: "UTC" });
if (dt.isValid) { if (dt.isValid) {
return dt; return dt;
} }

Loading…
Cancel
Save