Click or drag to resize

TimeZoneAndEmailSettingsApplyTimeZoneToMetadata Property

Determines if CollectionTimeZone is applied to extracted DateTime metadata with Kind equal to Unspecified.

Namespace: OpenDiscoverSDK.Interfaces.Settings
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2025.4.4.0 (2025.4.4)
Syntax
C#
[DataMemberAttribute]
public bool ApplyTimeZoneToMetadata { get; set; }

Property Value

Boolean
Remarks

If ExtractionType is set to MetadataOnly then this property is ignored. Text is never extracted in metadata only mode.

If this property is true, then DateTime metadata that have Kind equal to Unspecified will have their values converted to UTC using the time zone of property CollectionTimeZone. Extracted DateTime metadata with Local are always converted to UTC automatically.

If false, DateTime metadata with Kind equal to Unspecified will not be converted to UTC using CollectionTimeZone and the user should keep track of the Kind of each date (e.g., store the Kind of each DateTime along with its value in a database or index).

The time zone CollectionTimeZone is not applied to any DateTime metadata that has DateTime.Kind property equal to Utc.

Default property value: false

See Also