nats_display_timezones

Displays and returns a variable with the current time in user's preferred timezone.

Alias: display_timezones

Parameters

(Required parameters in bold)

Parameter
Description
Possible Values
Default Value
Example

tpl

Template used to display output

Any valid template

The template, function_display_timezones

tpl="mytemplate"

Prefix output variables with this word. (Click link for details)

Any valid Smarty variable name

None. (No prefix is used)

assign_prefix="myvar"

Set variables but don't display the template

1

None. The template is displayed.

data_only=1

Output

  1. The current time in the user's preferred timezone.

  2. The variable $current_time containing the current time in the user's preferred timezone.

Notes

Uses the user's timezone setting from the database.

See Also

Last updated

Was this helpful?