Table of Contents

Method ResolveOrLocal

Namespace
Oscova.Agents.Utilities
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

timeZoneId string?

A Windows or IANA time-zone identifier.

Returns

TimeZoneInfo

The resolved time zone, or System.TimeZoneInfo.Local when the identifier is blank or invalid.