Skip to content

Commit 9c5c737

Browse files
committed
Set timezone to null if an exception occurs.
1 parent ecf7339 commit 9c5c737

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ protected virtual async Task<TimingDto> GetTimingConfigAsync()
332332
}
333333
catch (Exception ex)
334334
{
335+
timeZoneId = null;
336+
timeZoneName = null;
335337
Logger.LogWarning(ex, $"Exception occurred while getting timezone({timeZone}) information");
336338
}
337339
}

0 commit comments

Comments
 (0)