FIX: New workbooks are created in the users TZ falling back to UTC

This commit is contained in:
Nicolás Hatcher
2025-11-11 06:56:45 +01:00
committed by Nicolás Hatcher Andrés
parent dd78db3d2b
commit ae3fcaf9e9
2 changed files with 13 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ import {
uploadFile,
} from "./components/rpc";
import {
createModelWithSafeTimezone,
createNewModel,
deleteModelByUuid,
deleteSelectedModel,
@@ -65,7 +66,7 @@ function App() {
const newModel = loadSelectedModelFromStorage();
if (!newModel) {
setShowWelcomeDialog(true);
const createdModel = new Model("template", "en", "UTC");
const createdModel = createModelWithSafeTimezone();
setModel(createdModel);
} else {
setModel(newModel);