-
Notifications
You must be signed in to change notification settings - Fork 161
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
Fix/datetime filter fix #1316
base: main
Are you sure you want to change the base?
Fix/datetime filter fix #1316
Conversation
Yes, I accept the agreement. What do I need to do for this? @microsoft-github-policy-service agree company="DexTechnology" |
Can someone review the changes and approve the pull request? |
I added a more accurate setter for 'Kind' depending on TimeZoneInfo in the settings.
|
Could you please let me know how often you conduct releases and when we can expect a new version with this fix? Will we have to wait for a scheduled release for some time, or can a version with these changes be released earlier (perhaps as a release candidate or something similar)? |
Hello! Any updates on this issue? |
Guys, take a look please @xuzhg @marabooy @KenitoInc @habbes @mikepizzo @ElizabethOkerio @gathogojr |
minor refactor Co-authored-by: Samuel Wanjohi <[email protected]>
@WanjohiSammy |
Getting the error:
|
@WanjohiSammy Sorry for bothering you with testing on the test bench) |
@VitaliyChaban Do you think you can include a unit test or E2E test for the scenario described here that confirms that the date from the URL is parsed into the expected value? |
I’m not very familiar with the context of E2E tests, so I’m not sure exactly what you mean. The issue you’re describing should be fixed after my changes if you specify TimeZone = TimeZoneInfo.Utc in ODataSettings and in the query string use a dateTime with 'Z' at the end: '2024-04-17T09:45:00%2B02:00Z' In that case, the original dateTime will be passed to EF, but with kind=utc, as expected. |
Here's how the poster described the issue:
The E2E test I had in mind is one that has a dependency on EF. One that would help us verify that your fix truly resolves the issue. You can check through the E2E tests in the repo to see if there are E2E tests with a dependency on EF that can guide you on how to proceed. |
@VitaliyChaban Build is failing. Could you test this locally.
|
This reverts commit 34b9ef8.
@WanjohiSammy @gathogojr It seems that further testing with EF goes beyond the issue I wanted to fix. Moreover, the SQL query formation might even differ depending on the specific database being used. |
fix error:
Cannot write DateTime with Kind=Unspecified to PostgreSQL type 'timestamp with time zone', only UTC is supported
also:
Fixes #1223
Fixes #1033
Fixes #378