mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-14 04:05:04 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16fb3683dd | ||
|
|
bb9bcf6cdf |
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [16.0.3] 2022-06-23
|
||||||
|
### Changed
|
||||||
|
- Throwing better exception when trying to get unknown timezones
|
||||||
|
|
||||||
## [16.0.2] 2022-05-23
|
## [16.0.2] 2022-05-23
|
||||||
### Changed
|
### Changed
|
||||||
- Fixed an issue in IcdUriBuilder where relative pathes were not being built into a valid URI.
|
- Fixed an issue in IcdUriBuilder where relative pathes were not being built into a valid URI.
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ using System.Reflection;
|
|||||||
[assembly: AssemblyCompany("ICD Systems")]
|
[assembly: AssemblyCompany("ICD Systems")]
|
||||||
[assembly: AssemblyProduct("ICD.Common.Utils")]
|
[assembly: AssemblyProduct("ICD.Common.Utils")]
|
||||||
[assembly: AssemblyCopyright("Copyright © ICD Systems 2022")]
|
[assembly: AssemblyCopyright("Copyright © ICD Systems 2022")]
|
||||||
[assembly: AssemblyVersion("16.0.2.0")]
|
[assembly: AssemblyVersion("16.0.3.0")]
|
||||||
|
|||||||
@@ -61,7 +61,11 @@ namespace ICD.Common.Utils.TimeZoneInfo
|
|||||||
|
|
||||||
public static IcdTimeZoneInfo FindSystemTimeZoneById(string timeZoneId)
|
public static IcdTimeZoneInfo FindSystemTimeZoneById(string timeZoneId)
|
||||||
{
|
{
|
||||||
return s_Cache[timeZoneId];
|
IcdTimeZoneInfo timeZone;
|
||||||
|
if (s_Cache.TryGetValue(timeZoneId, out timeZone))
|
||||||
|
return timeZone;
|
||||||
|
|
||||||
|
throw new KeyNotFoundException(string.Format("Unable to find timezone with id:{0}", timeZoneId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool TryFindSystemTimeZoneById(string timeZoneId, out IcdTimeZoneInfo output)
|
public static bool TryFindSystemTimeZoneById(string timeZoneId, out IcdTimeZoneInfo output)
|
||||||
|
|||||||
Reference in New Issue
Block a user