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
Convert DateTimeOffset to DateTime when necessary #584
Conversation
@0xced Would you please add several tests to cover your change-sets? |
ChangeSetItem and RestierQueryBuilder are at 2 different level, one is in Core and the other publisher, we'd better make the change more consistent. |
@xuzhg As I explained, this problem only exists when a
@rayao What would you suggest to make the change more consistent? I thought that extracting the logic in a helper class was precisely making it consistent. |
Ping. |
I'm ok with this change. |
@0xced I'd like to be able to accept this PR, but you're going to need to catch up on your branch before I can pull it in. Thanks! |
This is required for keys with a DateTime property Fixes OData#578
I just rebased on master. It seems the continuous integration has failed but unfortunately I'm not authorized to see what has failed. |
Don't worry about the CI, I broke the project by moving it to an entirely new structure, so it's going to keep failing until Microsoft gives me access to fix things. I just wanted to make sure the code was current and still necessary so I could pull it in. Approving now, and I hope to have a CI build you can you before the end of the weekend. Thanks for your contribution! |
Convert DateTimeOffset to DateTime when necessary
Issues
This pull request fixes issue #578.
Description
Entities with a
DateTime
property in their key can't be created/read/updated/deleted because OData Web API does not supportDateTime
in the keys. This pull request addresses this issue by convertingDateTimeOffset
toDateTime
when necessary.Checklist
Additional work necessary
No additional work necessary.