Skip to content

Session time zone

The session starts in UTC. Supported settings are UTC and numeric time-zone offsets.

SESSION SET TIME ZONE '+08:00';
SESSION RESET TIME ZONE;

IANA names such as Asia/Shanghai are not evaluated. The setting is session-local and nonpersistent. RESET restores the initial value.

Temporal query literals, constructors and current-date/time functions are still syntax only. Setting a time zone does not enable those operations or add a general timezone database.