Skip to content

Set timezone #732

@daniel-shuy

Description

@daniel-shuy

Before closing this issue as a duplicate, all the other answers do not work.

You can try this by simply running:

docker run -e "TZ=UTC" -e "PGTZ=UTC" -p 5432:5432 postgres:12-alpine

then:

show timezone;

will still return local timezone instead of the timezone set in TZ/PGTZ. I've tried this with other timezones as well (eg. Europe/Amsterdam), as well as with older images (eg. 9.5-alpine).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions