Browse Source

Set timezone to null if an exception occurs.

pull/22800/head
maliming 9 months ago
parent
commit
9c5c737aee
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs

2
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs

@ -332,6 +332,8 @@ public class AbpApplicationConfigurationAppService : ApplicationService, IAbpApp
}
catch (Exception ex)
{
timeZoneId = null;
timeZoneName = null;
Logger.LogWarning(ex, $"Exception occurred while getting timezone({timeZone}) information");
}
}

Loading…
Cancel
Save