Method ResolveOrLocal
- Namespace
- Oscova.Agents.Utils
- Assembly
- Oscova.Agents.dll
ResolveOrLocal(string?)
Resolves a time-zone identifier or falls back to the local system time zone.
public static TimeZoneInfo ResolveOrLocal(string? timeZoneId)Parameters
timeZoneIdstring?-
A Windows or IANA time-zone identifier.
Returns
- TimeZoneInfo
-
The resolved time zone, or System.TimeZoneInfo.Local when the identifier is blank or invalid.