Function __global->get_users_timezone
Definitions
sources/temporal.php
- Get a user's timezone.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Member for which the date is being rendered (null: current user) |
Returns
- User;s timezone in "boring" format
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a user's timezone.
*
* @param ?MEMBER $member_id Member for which the date is being rendered (null: current user)
* @return string User;s timezone in "boring" format
*/
function get_users_timezone(?int $member_id = null) : string
* Get a user's timezone.
*
* @param ?MEMBER $member_id Member for which the date is being rendered (null: current user)
* @return string User;s timezone in "boring" format
*/
function get_users_timezone(?int $member_id = null) : string
