Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass timezone into image #137

Closed
note89 opened this issue Mar 22, 2016 · 3 comments
Closed

Pass timezone into image #137

note89 opened this issue Mar 22, 2016 · 3 comments

Comments

@note89
Copy link

note89 commented Mar 22, 2016

Is there a way to pass the timezone into Postgres. ?
I would like for the dates to be GMT+1

@polobo
Copy link

polobo commented May 5, 2016

The PostgreSQL docs describe two environment variables related to this.
initdbuses TZ as the value it writes to postgres.conf
libpq checks for PGTZ to determine which time zone to set (for the client) after connecting (to the server)

I suspect setting these in the usual fashion will work but haven't tried it.

@robkorv
Copy link

robkorv commented Dec 26, 2016

I can confirm that passing -e TZ=Europe/Amsterdam sets the default timezone to Europe/Amsterdam.

Keep in mind that the value should be a full time zone name. See: https://www.postgresql.org/docs/9.5/static/datatype-datetime.html#DATATYPE-TIMEZONES

@yosifkit
Copy link
Member

Closing old issue. Looks like this was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants