Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Date and time zone

User time zone (getUserTimezone)

Scroll Prev Top Next More

This function allows you to determine the user's time zone.

Parameter

Type

Description

$userName

string

Username

The function returns the time zone of the stated user. In case the stated user does not exist, a JobRouterException is thrown.

Example:

$userTimezone = $this->getUserTimezone('admin');