-
Notifications
You must be signed in to change notification settings - Fork 164
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 zone settings not propagated to query #384
Comments
See commit at: bcdf32e |
@MrKevHunter would you please help verify your project using the latest nightly bit? |
yep should be able to, will take a look |
looks good to me, setting the timezone to UTC in the startup.cs fixes our issue |
Could you please post the fix? I am facing the same issue I am trying the latest 8.0.11 package. |
Having the same issue with 8.0.12, Anyone found any fix? @MrKevHunter |
I'm seeing the same problem with the latest version as of 6/29/2023. Breaking Datetime values is a huge problem, how is this still broken? |
I'm also see the problem. |
We are also facing this issue, only enabling legacyTimestampBehavior on postgres does fix it for now. ODataSettings = new ODataSettings
{
TimeZone = TimeZoneInfo.Utc,
}, public static class PostgresModuleInitializer
{
[ModuleInitializer]
public static void Initialize()
{
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
}
} |
@pgrimmert My original problem is not related to postgres but thanks for the hint! |
Using Microsoft.AspNetCore.OData V 8.0.4
in my startup I set
And specify the time zone i want to use
When using
The
ExpressionBinderHelper
is not setting the TimeZonehttps://github.com/OData/AspNetCoreOData/blob/master/src/Microsoft.AspNetCore.OData/Query/Expressions/ExpressionBinderHelper.cs#L76
Has a null timezone
I've read #268 But this doesn't seem to have fixed the issue in 8.0.4
The text was updated successfully, but these errors were encountered: