From 259f7fba5456a7f50cf2403823728ff3ed601d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Thu, 9 Jan 2025 23:13:49 +0100 Subject: [PATCH] fix: moment timezone --- src/app/stores/roomStore.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/stores/roomStore.ts b/src/app/stores/roomStore.ts index d3f1f53..1ae85c4 100644 --- a/src/app/stores/roomStore.ts +++ b/src/app/stores/roomStore.ts @@ -1,9 +1,11 @@ -import moment from "moment"; +import moment from "moment-timezone"; import { create } from "zustand"; import { Room } from "../interface/room"; import { useUserStore } from "./userStore"; import { roomsService } from "../services/rooms.service"; +moment.tz.setDefault("UTC"); + type RoomStoreState = { future: Room[] | null; actual: Room[] | null;