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

[3.x] fix: default date casting #1842

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

calebdw
Copy link
Contributor

@calebdw calebdw commented Feb 11, 2024

Changes
Closes #1744

Note, this depends on #1831 as that PR refactored the model property logic into a helper class.

Thanks!

@calebdw calebdw marked this pull request as draft February 11, 2024 21:10
@calebdw
Copy link
Contributor Author

calebdw commented Feb 11, 2024

Marking as draft until #1831 is merged

@calebdw
Copy link
Contributor Author

calebdw commented Jun 17, 2024

@canvural, I've rebased and tests are passing, can this be merged? This just switches the checks around so that if there's an explicit cast for a date it will use the cast instead of the default date cast.

@szepeviktor
Copy link
Collaborator

@calebdw
Copy link
Contributor Author

calebdw commented Oct 1, 2024

Yes, all this does is just switch the if conditions around to respect the user's custom cast if there is one

@calebdw calebdw changed the title fix: default date casting [3.x] fix: default date casting Nov 17, 2024
@calebdw calebdw changed the base branch from 2.x to 3.x November 17, 2024 03:53
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.

Default date field casts are ignored
2 participants