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

RUBY-1702 Skip creating Time instance in Date serialization #118

Merged
merged 3 commits into from
Feb 28, 2019
Merged

RUBY-1702 Skip creating Time instance in Date serialization #118

merged 3 commits into from
Feb 28, 2019

Conversation

fanfilmu
Copy link
Contributor

JIRA: RUBY-1702

I haven't found any nice solution for DateTimes - there is no way to get df attribute - which apparently holds second since beginning of day. I could use things like offset/sec_fraction etc., but this would be much harder to read + would actually create more instances (of Rational) than just using to_time as in current implementation.

@p-mongo p-mongo changed the title Skip creating Time instance in Date serialization RUBY-1702 Skip creating Time instance in Date serialization Feb 27, 2019
@p-mongo p-mongo requested a review from saghm February 27, 2019 05:48
@p-mongo p-mongo merged commit 297af12 into mongodb:master Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants