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

thrimbletrimmer-solid
ElementalAlchemist 2 weeks ago
parent f306643a92
commit 9d4bbfd32a

@ -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