SetTimezone

Sets the timezone of the current request context

Method Signature

SetTimezone(timezone=[string])

Arguments

Argument
Type
Required
Description
Default

timezone

string

true

The string representation or three character alias of the timezone

Examples

Set the current Timezone to CET

Run Example

setTimezone( "CET" );
writeoutput( getTimezoneInfo().TIMEZONE );

Result: CET

Additional Examples

<bx:dump var="#getTimeZone()#">
	<bx:set settimezone( "ART" ) >
	<bx:dump var="#getTimeZone()#">

Last updated

Was this helpful?