--- id: changing-timezones title: "Changing Timezones" slug: changing-timezones custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postgres.yml --- import Tabs from '@theme/Tabs'; import TabsPanel from '@theme/TabsPanel'; Data types. ```sql alter database postgres set timezone to 'America/New_York'; ``` ## Notes - View a full list of timezones on [Wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). ## Examples ### Change timezone ```sql alter database postgres set timezone to 'America/New_York'; ``` ### Full list of timezones Get a full list of timezones supported by your database. This will return the following columns: - `name`: Time zone name - `abbrev`: Time zone abbreviation - `utc_offset`: Offset from UTC (positive means east of Greenwich) - `is_dst`: True if currently observing daylight savings ```sql select name, abbrev, utc_offset, is_dst from pg_timezone_names() order by name; ``` ### Search for a specific timezone Use `ilike` (case insensitive search) to find specific timezones. ```sql select * from pg_timezone_names() where name ilike '%york%'; ```