Today I Learned

hashrocket A Hashrocket project

Updating Postgres Timezone

Run show timezone to see the current timezone on your postgres database:

my_db_test=# show timezone;

To alter the timezone:

alter database my_db_test set timezone to 'utc';

You might want to restart your psql session for the new timezone to apply.

See More #sql TILs
Looking for help? Hashrocket developers believe that data quality is as important as code quality. We enjoy all the challenges of relational databases, from finding the fastest index, to structuring data to fit the needs of an application. We're eager to share our experiences; check out PG Casts, our series of free PostgreSQL screencasts.