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

Support for DateTime constructors in expressions #184

Merged
merged 6 commits into from
Oct 31, 2014
Merged

Conversation

mfenniak
Copy link
Owner

This PR will address issue #154.

This is currently at a starting-point stage. DateTime works alright, but DateTimeOffset will need additional magic in order to work.

The simple template mapping approach here gets it slightly right, but
it needs to support DateTimeKind in the constructor to begin to get
DateTimeOffset correct.
A complicated constructor to support new DateTimeOffset(dt, offset) that
converts TimeSpans to offsets, server-side, by formatting the correct
offset string.

It seems like the DateTimeOffsetDatumConverter isn't handling the offsets
the way I would expect; I've made a change here, but it breaks the tests.
The tests need to be re-evaluated to ensure my change is accurate...
it might not be.
Took raw values out of RethinkDB for time constructions in local and with
offsets, and ensured that DateTimeOffsetDatumConverter matches both
creating the objects and the datums for both cases.  Confirmed that
offsets were not working correctly before these upgrades.
mfenniak added a commit that referenced this pull request Oct 31, 2014
Support for DateTime constructors in expressions; fixes #154.
@mfenniak mfenniak merged commit e3cb24f into master Oct 31, 2014
@mfenniak mfenniak deleted the issue_154 branch October 31, 2014 03:35
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.

1 participant