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
Clock.Provider not working in abp v9 #6928
Comments
as additional info, this issue only happens on HTTP POST (kind = local). on HTTP GET it remains the same v7 (kind=utc). |
@yopichy I couldn't reproduce this issue. Is it possible for you to prepare a solution which reproduces this problem ? I downloaded a new template from https://aspnetboilerplate.com/Templates and created the app service below; public interface ITestAppService : IApplicationService
{
Task DoSomething(DoSomethingInput input);
}
public class DoSomethingInput
{
public DateTime Date { get; set; }
}
public class TestAppService : Issue6928AppServiceBase, ITestAppService
{
public Task DoSomething(DoSomethingInput input)
{
return Task.CompletedTask;
}
} Then, I send the request below; Ahd this is the value I get; |
@ismcagdas in startup clock provider using utc? |
Can you compare your Startup.cs with the new project's Startup.cs ? It might help. |
@ismcagdas I only saw a difference in the part where there was no .AddNewtonsoftJson in new template, is that the problem? |
based on https://aspnetboilerplate.com/Pages/Documents/Timing, i set Clock.Provider = ClockProviders.Utc.
before upgrade in abp v7 (NET6), when API received payload "2024-01-01T00:00:00.000+07:00" in SomethingAppService will be auto convert to "2023-12-31 17:00:00" [kind=utc], but in v9 (NET8) still "2024-01-01 00:00:00" [kind=local]
The text was updated successfully, but these errors were encountered: