OffsetDateTime with PostgreSQL #3581
Replies: 2 comments
-
I converted this to a feature request, as that's not a bug in diesel but more a missing feature. I would probably accept a PR to add the relevant impls for the postgres backend as well. |
Beta Was this translation helpful? Give feedback.
-
After some discussion in #3973 I'm not sure it is a good idea to implement this as asked. There's still a bit of work to be done lining up the TZ-aware types, and maybe some clarification that could be done in the documentation. For my case @Ten0 pointed out it's possible to replace |
Beta Was this translation helpful? Give feedback.
-
Setup
Versions
Feature Flags
Problem Description
I'm not sure if it's a missing implementation or if it's misleading documentation.
OffsetDateTime
seems to be available only for the mysql backend.What are you trying to accomplish?
Using
OffsetDateTime
when serializing / deserializing fromTimestamp
with the PostgreSQL backend.When looking at the source code, this implementation is only covered for mysql.
What is the expected output?
What is the actual output?
Are you seeing any additional errors?
Steps to reproduce
Checklist
closed if this is not the case)
Beta Was this translation helpful? Give feedback.
All reactions