Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
import { computed, type ComputedRef } from 'vue';
import { userTimezone } from '@/preferences';
/**
* The zone the composer shows and takes times in: the channels' zone when they
* all share one, the user's zone when they differ or none is selected.
*/
export const useComposerTimezone = (
accounts: () => { timezone?: string }[],
): ComputedRef<string> =>
computed(() => {
const zones = [
...new Set(
accounts()
.map((account) => account.timezone)
.filter((zone): zone is string => Boolean(zone)),
),
];
return zones.length === 1 ? zones[0] : userTimezone.value;
});