Back to Devexpress

ITimeZoneProvider.GetCurrentTimeZone() Method

xtrareports-devexpress-dot-xtrareports-dot-services-dot-itimezoneprovider.md

latest1.5 KB
Original Source

ITimeZoneProvider.GetCurrentTimeZone() Method

Gets the time zone used in UtcToLocalTime and LocalTimeToUtc functions.

Namespace : DevExpress.XtraReports.Services

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
TimeZoneInfo GetCurrentTimeZone()
vb
Function GetCurrentTimeZone As TimeZoneInfo

Returns

TypeDescription
TimeZoneInfo

A TimeZoneInfo object that specifies the time zone.

|

Remarks

The GetCurrentTimeZone method returns a TimeZoneInfo object that is the local time zone. Reporting controls use this time zone when converting date-time values using UtcToLocalTime and LocalTimeToUtc functions.

See Also

ITimeZoneProvider Interface

ITimeZoneProvider Members

DevExpress.XtraReports.Services Namespace