Merge pull request #513 from aloucks/timezone

Change connection initialization timezone to UTC
This commit is contained in:
Steven Fackler 2019-11-17 08:34:59 -05:00 committed by GitHub
commit 1884b85283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ where
S: AsyncRead + AsyncWrite + Unpin,
T: AsyncRead + AsyncWrite + Unpin,
{
let mut params = vec![("client_encoding", "UTF8"), ("timezone", "GMT")];
let mut params = vec![("client_encoding", "UTF8"), ("timezone", "UTC")];
if let Some(user) = &config.user {
params.push(("user", &**user));
}