mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing SiteTimeZoneSelector.cs for background tasks
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Orchard.Time {
|
||||
public TimeZoneSelectorResult GetTimeZone(HttpContextBase context) {
|
||||
|
||||
try {
|
||||
var siteTimeZoneId = _workContextAccessor.GetContext(context).CurrentSite.SiteTimeZone;
|
||||
var siteTimeZoneId = _workContextAccessor.GetContext().CurrentSite.SiteTimeZone;
|
||||
|
||||
if (String.IsNullOrEmpty(siteTimeZoneId)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user