SetTimeZone()

Change the timezone definition for the current request.

SetTimeZone( timezone=timezone );

Returns: Timezone

Argument Description
timezone
timezone, required

You can find a list of all available timezones in the Lucee administrator (Settings/Regional). Some examples of valid timezones include:

  • AGT (for time in Argentina)
  • Europe/Zurich (for time in Zurich/Switzerland)
  • HST (Hawaiian Standard Time in the USA)

Examples

<cfdump var="#getTimeZone()#">
	<cfset settimezone("ART")>
	<cfdump var="#getTimeZone()#">

See also