Click or drag to resize
TimeZoneHelper.GetTimeZoneInfo Method (IUserInfo, ISiteInfo)
Returns timezone of given user or site timezone is the user one is not set. If also site timezone is not set then server timezone is returned.

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 10.0.0
Syntax
C#
public static TimeZoneInfo GetTimeZoneInfo(
	IUserInfo userInfo,
	ISiteInfo siteInfo
)

Parameters

userInfo
Type: CMS.Base.IUserInfo
User info
siteInfo
Type: CMS.Base.ISiteInfo
Site info

Return Value

Type: TimeZoneInfo
See Also