Fixing SiteTimeZoneSelector.cs for background tasks

This commit is contained in:
Sebastien Ros
2013-12-07 09:49:33 -08:00
parent faefdf6936
commit e89d6762e4

View File

@@ -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;