Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
377 B
Raw Blame
import { useAuthStore } from "@multica/core/auth";
import { browserTimezone } from "./timezone-select";

// Viewer's IANA tz: stored user preference, else browser-detected, else UTC.
export function useViewingTimezone(): string {
  const stored = useAuthStore((s) => s.user?.timezone ?? null);
  if (stored && stored.trim() !== "") return stored;
  return browserTimezone();
}