How to use the @blueprintjs/timezone.getTimezoneMetadata function in @blueprintjs/timezone

To help you get started, we’ve selected a few @blueprintjs/timezone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github palantir / blueprint / packages / docs-app / src / examples / timezone-examples / components / customTimezoneTarget.tsx View on Github external
private getTooltipContent() {
        const { timezone } = this.props;

        if (timezone == null || timezone.length === 0) {
            return "No selection";
        }

        const { abbreviation, offsetAsString } = getTimezoneMetadata(timezone);

        return (
            <span>
                GMT {offsetAsString}
                <span style="{{">{abbreviation ? ` (${abbreviation})` : ""}</span>
            </span>
        );
    }