set_timezone
Sets the app's timezone, which the date functions (`datestring`, `date_parse`, `date_part`, `date_add`, `date_diff`, `today`) use for days, hours and names, on the server and on the device alike. It is an IANA zone name such as "America/Los_Angeles" or "Europe/Paris". Until it is set, or when the name is unknown, the timezone is America/New_York. The value is kept in the app variable `__exotool_timezone`, which the compiler places like any other variable.
Runs on: either side: the compiler places the statement that calls it where the values it uses live.
Format:
set_timezone(zone_name)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| zone_name | string | the IANA name of the zone |
Examples
set_timezone("America/Chicago")