setTimeZone

Change the timezone definition for the current request

setTimezone(timezone) → returns string

Argument Reference

timezone string
Required

The timezone to set to.

Examples
Sample code invoking the setTimeZone function

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

Expected Result: CET

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub