Use SESSION:TIMEZONE (-useSessionTZ)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Use SESSION:TIMEZONE (-useSessionTZ)
specifies whether or not the SESSION:TIMEZONE attribute is
applied to results of direct assignments between DATE,
DATETIME, and DATETIME-TZ data types.
| Operating system and syntax | UNIX / Windows |
-useSessionTZ
n
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default | Multi-user default |
| Client Session | — | — | 1 | — |
- n
- 0 indicates
SESSION:TIMEZONEis not used with assignments, and 1 indicatesSESSION:TIMEZONEis used. The default value is 1.
For earlier OpenEdge releases, the SESSION:TIMEZONE attribute affected only the MTIME, NOW, TIME, TIMEZONE, and TODAY functions. However, the AVM now uses the value of SESSION:TIMEZONE, when set, to calculate the results of:
- Functions
DATETIME-TZ,MTIME,NOW,TIME,TIMEZONE, andTODAY - Direct assignment operations between
DATE,DATETIME, andDATETIME-TZdata types.
-useSessionTZ 0 parameter. Note: For more information about direct assignment operations and how they're
affected by
SESSION:TIMEZONE, see the ASSIGN statement (notes section) and TIMEZONE attribute entries in the ABL
Reference.