-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Labels
Description
Using Microsoft.AspNetCore.OData V 8.0.4
in my startup I set
.AddOData(opt =>
{
opt.Select().Filter().OrderBy().Count().SetMaxTop(1000)
.AddRouteComponents("api", EdmModelBuilder.GetEdmModel())
.TimeZone = TimeZoneInfo.Utc;
opt.EnableAttributeRouting = true;
})And specify the time zone i want to use
When using
[HttpGet("api/my-endpoint")]
[EnableQuery(PageSize = 44, MaxTop = 100, AllowedQueryOptions = AllowedQueryOptions.All)]The ExpressionBinderHelper is not setting the TimeZone
right = DateTimeOffsetToDateTime(right, querySettings.TimeZone, querySettings);Has a null timezone
I've read #268 But this doesn't seem to have fixed the issue in 8.0.4
icnocop