could you tell us how did you solve your issue?
Ok I see the issue. @summeyye will check this issue
or try Rider to see if this is directly related to the ABP source-code
what's your backend logs?
normally this happens when your startup project doesn't have AbpLicenseCode
. There's a simple check if you properly include the license code config in your host project. run the following code, when AbpLicenseCode
is not empty it'll not throw any exception.
var configuration = Microsoft
.Extensions
.DependencyInjection
.ServiceProviderServiceExtensions
.GetRequiredService<Microsoft.Extensions.Configuration.IConfiguration>(context.ServiceProvider);
var licenseCode = configuration["AbpLicenseCode"];
Also check this => https://abp.io/support/questions/8633/
Douglas W. has an issue about licensing. His license already expired.
fail: Volo.Abp.Account.Pro.Public.Web.Shared.AbpAccountPublicWebSharedModule[0]
ABP-LIC-0020 - License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.
fail: Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule[0]
ABP-LIC-ERROR - License check failed for 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial-v8.0.1.0'.
For more information, contact to license@abp.io.)
In ABP, when you set AbpClockOptions.Kind
to DateTimeKind.Utc
and configure the Abp.Timing.TimeZone
setting, the framework is designed to display times in the user's or application's configured time zone throughout the UI, including logs. But it writes in UTC format to the server.
The correct approach is to use both:
AbpClockOptions.Kind = DateTimeKind.Utc
(to ensure all times are stored and handled as UTC)Npgsql.EnableLegacyTimestampBehavior
(for PostgreSQL compatibility)If the audit logs page is not converting UTC times to the user's time zone, this can be bug . Other pages, such as the security logs, already use the time zone setting as expected.
You are configuring time zones correctly in your application. No further changes are needed to your settings. The issue is with the audit logs page not applying the time zone conversion, and this should be reported to the ABP team for correction.
Send us related screenshots.
thank you for the feedback