Skip to main content
Go to Latest
method Diagnostic.prototype.getTimezone
import { Diagnostic } from "https://deno.land/x/flagship_io_js_sdk@4.0.2/hit/Diagnostic.ts";

Gets the timezone of the user.

Returns

string

The timezone as a string. If the timezone cannot be determined, it returns the offset from UTC in hours.