Skip to main content
All docs
V26.1
  • ConnectionProviderSql.MapWindowsToIanaTimeZoneId Field

    Specifies a custom function that converts a time zone identifier from Windows to IANA format.

    Namespace: DevExpress.Xpo.DB

    Assembly: DevExpress.Data.v26.1.dll

    Declaration

    public static Func<string, string> MapWindowsToIanaTimeZoneId

    Field Value

    Type Description
    Func<String, String>

    A method that accepts a Windows time zone identifier and returns the corresponding IANA time zone identifier.

    Remarks

    The MapWindowsToIanaTimeZoneId implementation can be required for CriteriaOperator functions that work with DateTimeOffset values.

    Default Behaviour

    • In .NET applications, the default conversion logic is based on the TryConvertWindowsIdToIanaId(String, String) method.
    • In .NET Framework applications, an InvalidOperationException is thrown if no custom conversion function is specified.
    See Also