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

Add utc_datetime examples to cast/2 #4264

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

tfwright
Copy link
Contributor

@tfwright tfwright commented Aug 17, 2023

Was asked by someone integrating with an Ecto based API what formats are accepted for date times and I had a hard time tracking down docs to offer. In v2 we had https://hexdocs.pm/ecto/2.0.1/Ecto.DateTime.html#cast/1

I wonder if it would be worth wrapping these implementations in their own type modules rather than inlining it? Not clear on what the implications are there exactly, but it would make for better docs I think

lib/ecto/type.ex Outdated Show resolved Hide resolved
Co-authored-by: felipe stival <14948182+v0idpwn@users.noreply.github.com>
@josevalim josevalim merged commit 7397528 into elixir-ecto:master Aug 18, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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.

3 participants