Click or drag to resize
TimeZoneHelperGetTimeZoneInfo 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: 13.0.131
Syntax
C#
public static TimeZoneInfo GetTimeZoneInfo(
	IUserInfo userInfo,
	ISiteInfo siteInfo
)

Parameters

userInfo
Type: CMS.BaseIUserInfo
User info
siteInfo
Type: CMS.BaseISiteInfo
Site info

Return Value

Type: TimeZoneInfo
See Also