Przeglądaj źródła

fix(header): display last login in Brazil timezone

ebagabee 5 dni temu
rodzic
commit
3f26b9ec47
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/components/layout/DefaultHeaderPage.vue

+ 2 - 2
src/components/layout/DefaultHeaderPage.vue

@@ -440,14 +440,14 @@ watch(
 const lastLoginFormatted = computed(() => {
   const raw = store.user?.last_login_at;
   if (!raw) return null;
-  const d = new Date(raw.replace(" ", "T") + "Z");
+  const d = new Date(raw.replace(" ", "T"));
   return new Intl.DateTimeFormat("pt-BR", {
     day: "2-digit",
     month: "2-digit",
     year: "numeric",
     hour: "2-digit",
     minute: "2-digit",
-    timeZone: "America/Sao_Paulo",
+    timeZone: "America/Fortaleza",
   }).format(d);
 });