NOTE: If you are using Sitefinity CMS 6.3 or older, go to Managing Recurrence Rules (6.3 and below).
With Sitefinity CMS 7.0, you can use a new property TimeZoneId with event items that helps to accurately calculate recurring events. The TimeZoneId property is a key string that uniquely identifies a particular time zone. It corresponds to the subkeys located in the folder HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zone.
You can set the TimeZoneId property to UTC, the Sitefinity CMS user interface TimeZone, or any other string representing a valid time zone. You can find a list of valid time zone IDs in the Name of the Time Zone column in the Microsoft time zone index values.
The following sample code demonstrates how to set the TimeZoneId property to the Sitefinity CMS user interface TimeZone: event.TimeZoneId = UserManager.GetManager().GetUserTimeZone();
.TimeZoneId = UserManager.GetManager().GetUserTimeZone();
Back To Top