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"
Output
The current time in the user's preferred timezone.
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
display_edit_defaults -- sets the user's preferred timezone.
Last updated
Was this helpful?