We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
useLocalTimeFormatPattern.ts•467 B
import { useMemo } from "react";
import { useLocale } from "react-aria-components";
import { getLocaleDateFormatPattern } from "@phoenix/utils/timeFormatUtils";
/**
* Returns the date format pattern for the current locale
* @returns The date format pattern for the current locale
*/
export function useLocalTimeFormatPattern() {
const { locale } = useLocale();
const pattern = useMemo(() => getLocaleDateFormatPattern(locale), [locale]);
return pattern;
}