Nats display timezones
From TMM Wiki
Jump to navigationJump to searchApplies to NATS 4.0.25 and greater.
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" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
data_only | Set variables but don't display the template | 1 | None. The template is displayed. | data_only=1 |
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.