---
title: TIMEZONE
description: Set the local time zone for timestamp operations in a session with the TIMEZONE configuration parameter in Databricks SQL.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/parameters/timezone
---

# TIMEZONE

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL

The `TIMEZONE` configuration parameter controls the local timezone used for timestamp operations within a session.

You can set this parameter at the session level using the [SET statement](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set.md)
and at the global level using [SQL configuration parameters](https://docs.databricks.com/aws/en/admin/sql/index.md#params) or the [SQL Warehouse API](https://docs.databricks.com/api/workspace/warehouses/setworkspacewarehouseconfig).

An alternative way to set the session timezone is using the [SET TIME ZONE statement](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-timezone.md).

## Setting

The parameter may be set to one of these values:

* **Region base zone ID**

  Region IDs must have the form 'area/city', such as `America/Los_Angeles`.

  For a list of valid timezones, see [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).

* **Zone offset**

  Zone offsets must be in the format '`(+|-)HH`', `(+|-)HH:mm` or `(+|-)HH:mm:ss`, e.g `-08`, `+01:00` or `-13:33:33`.
  Also, 'UTC' is supported as an alias for `+00:00`.

Other short names are not recommended to use because they can be ambiguous.

## System default

The system default is `UTC`.

## Examples

```sql
-- Set time zone to the region-based zone ID.
> SET timezone = America/Los_Angeles;
> SELECT current_timezone();
  America/Los_Angeles

-- Set time zone to the Zone offset.
> SET timezone = +08:00;
> SELECT current_timezone();
  +08:00
```

## Related

* [RESET](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-reset.md)
* [SET statement](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set.md)
* [SET TIME ZONE statement](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-timezone.md)
* [Configure SQL parameters](https://docs.databricks.com/aws/en/admin/sql/index.md#params)
* [SQL Warehouse API](https://docs.databricks.com/api/workspace/warehouses/setworkspacewarehouseconfig)
