diff --git a/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts b/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts index 2bf1659bf8cb..dcb9157ce4fa 100644 --- a/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts +++ b/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts @@ -425,7 +425,7 @@ function createEmscriptenModuleInstance(resourceLoader: WebAssemblyResourceLoade try { timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; } catch { } - MONO.mono_wasm_setenv("TZ", timeZone); + MONO.mono_wasm_setenv("TZ", timeZone || "UTC"); // Turn off full-gc to prevent browser freezing. const mono_wasm_enable_on_demand_gc = cwrap('mono_wasm_enable_on_demand_gc', null, ['number']); mono_wasm_enable_on_demand_gc(0);