-
-
Notifications
You must be signed in to change notification settings - Fork 500
Closed
Description
If you issue the query SELECT CURRENT_TIMESTAMP
in psql
or from other language adapters such as psycopg2, the Postgres server will return a value adjusted to what it considers its timezone (specifically, based on the value in the timezone
parameter in postgresql.conf
). In psql
the value returned shows the timezone adjustment to UTC, e.g., if the timezone
in postgresql.conf
is set to America/Denver
(MST), then the value is suffixed with -07
(or -06
during DST).
rust-postgres overrides this normal situation by sending timezone=UTC
when connecting to the server.
let mut params = vec![("client_encoding", "UTF8"), ("timezone", "UTC")]; |
SET TIMEZONE timezone-value
query before sending such a time-sensitive query.Therefore I think the timezone parameter should not be sent at all, or if sent, it should be configurable (with the default being "don't send it").
Metadata
Metadata
Assignees
Labels
No labels