Skip to content
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

Honour precision with timestamptz extension #691

Merged

Conversation

greg-rychlewski
Copy link
Member

The old code was using DateTime.from_unix to decode the result for Postgres so I changed it to be like the timestamp extension and use DateTime.from_gregorian_seconds. This seems to be the best way to get arbitrary precision in the Elixir struct, from what I can see.

I also moved some of the timestamp tests to be in the calendar test module so that all the tests are in there.

@greg-rychlewski greg-rychlewski merged commit 2f73477 into elixir-ecto:master Jul 16, 2024
8 of 9 checks passed
@greg-rychlewski greg-rychlewski deleted the timestamptz_precision branch July 16, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants