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

Time caster now returns input value if it acts like a time object #70

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

fusion2004
Copy link
Contributor

Fields using the time/timestamp/datetime caster will now return exactly the passed in value
if it acts like a time object (acts_like?(:time)/acts_like_time?), instead of serializing
to string and re-parsing to a Time object. This fixes issues with losing usec precision.

@fusion2004 fusion2004 merged commit 58a894e into main Nov 5, 2024
3 checks passed
@fusion2004 fusion2004 deleted the time-casting-dont-cast-timelike-to-string branch November 5, 2024 22:23
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