mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 01:57:55 +08:00
Fixing build
--HG-- branch : 1.x
This commit is contained in:
@@ -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)
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user