ソースを参照

fix(header): display last login in Brazil timezone

ebagabee 5 日 前
コミット
b9336c304a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/components/layout/DefaultHeaderPage.vue

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

@@ -415,14 +415,14 @@ const logoutFn = async () => {
 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);
 });