feat: support 12 and 24 hour formats
This commit is contained in:
parent
de6c9bb7eb
commit
eb49450756
3 changed files with 14 additions and 2 deletions
|
@ -49,7 +49,7 @@ const me = await fetchWithApi("/me") as UserResponse;
|
|||
const messageTimestamps = ref<Record<string, number>>({});
|
||||
const messagesType = ref<Record<string, "normal" | "grouped">>({});
|
||||
const messageGroupingMaxDifference = useRuntimeConfig().public.messageGroupingMaxDifference
|
||||
const timeFormat = settingLoad("timeFormat") ?? "24"
|
||||
const timeFormat = getPreferredTimeFormat()
|
||||
|
||||
const messagesRes: MessageResponse[] | undefined = await fetchWithApi(
|
||||
`${props.channelUrl}/messages`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue