mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
7 lines (6 loc) • 443 B
TypeScript
import type { Timezone } from 'timezones.json';
import type { UserTimezone } from '@mattermost/types/users';
export declare function getUserCurrentTimezone(userTimezone?: UserTimezone): string;
export declare function getTimezoneRegion(timezone: string): string;
export declare function getTimezoneLabel(timezones: Timezone[], timezone: string): string;
export declare function getDateForTimezone(date: Date | string, tzString: string): Date;