Skip to main content

getBrowserTimezone

Returns the user's timezone, determined by its browser.

API

function getBrowserTimezone(): string | undefined;

Usage

import { getBrowserTimezone } from "@feedzai/js-utilities";

const MY_TIMEZONE = getBrowserTimezone();

console.log(MY_TIMEZONE); // 'Europe/Lisbon'