(Quick Reference)

timeZoneSelect

Purpose

Helper tag to create HTML select tags for selecting from a list of time zones.

Examples

<!-- Create a timezone selector -->
<g:timeZoneSelect name="myTimeZone" value="${tz}" />

Description

Attributes

  • name (required) - The name of the select

  • value (optional) - An instance of TimeZone. Defaults to the time zone for the current Locale if not specified

  • locale (optional) - The Locale to use for formatting the time zone names. Defaults to the current request locale and then system default locale if not specified. A Locale or parsable locale String value (for example: 'sv_SE').