Fixing build

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-12 22:47:31 -08:00
parent d61e98e010
commit f2ca26bd4f

View File

@@ -20,16 +20,17 @@ namespace Orchard.Time {
if (String.IsNullOrEmpty(siteTimeZoneId)) { if (String.IsNullOrEmpty(siteTimeZoneId)) {
return null; return null;
} }
return new TimeZoneSelectorResult {
Priority = -5,
TimeZone = TimeZoneInfo.FindSystemTimeZoneById(siteTimeZoneId)
};
} }
catch { catch {
// if the database could not be updated in time, ignore this provider // if the database could not be updated in time, ignore this provider
return null; return null;
} }
return new TimeZoneSelectorResult {
Priority = -5,
TimeZone = TimeZoneInfo.FindSystemTimeZoneById(siteTimeZoneId)
};
} }
} }
} }