Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.util.getCurrentTimeZone()#

Syntax#

monster.util.getCurrentTimeZone();

Return value#

A String identifier for the current time zone.

Description#

The monster.util.getCurrentTimezone method returns a TZ database name representing the timezone set for the currently authenticated session.

By default, the time zone of the logged in user will be returned (monster.apps.auth.currentUser.timezone). If that time zone is not set, then the account time zone will be used (monster.apps.auth.currentAccount.timezone). If not set, the browser’s time zone will be used as a last resort.

Examples#

Get current time zone#

monster.util.getCurrentTimeZone();
// output: "America/Los_Angeles"