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

SET TIMEZONE 'UTC' on connection by default #1024

Closed
carols10cents opened this Issue Jul 14, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@carols10cents

carols10cents commented Jul 14, 2017

sgrif added a commit that referenced this issue Jul 14, 2017

Explicitly set the time zone and client encoding at connection startup
Diesel generally assumes that the database time zone is UTC, and that
the encoding is UTF8. These are the most common configurations, but this
explicitly sets our assumptions when the connection is established.

SQLite does not have a way to configure either of these, it is always
UTF8 and UTC.

Fixes #1024

@sgrif sgrif closed this in #1027 Jul 14, 2017

Fiedzia added a commit to Fiedzia/diesel that referenced this issue Jul 18, 2017

Explicitly set the time zone and client encoding at connection startup
Diesel generally assumes that the database time zone is UTC, and that
the encoding is UTF8. These are the most common configurations, but this
explicitly sets our assumptions when the connection is established.

SQLite does not have a way to configure either of these, it is always
UTF8 and UTC.

Fixes diesel-rs#1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment