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');
…