Tag Info

New answers tagged


Vadim Gremyachev posted almost right solution, but it is lacking, because the SPWeb object still keeps current users language settings. After some experimentations with objects and powershell, I remembered that SPSecurity.RunWithElevatedPrivileges opens web as administrator and uses default settings (language as well), so I wrapped Vadim Gremyachev code in ...


SPRegionalSettings.TimeZone property gets the time zone that is used on the SharePoint server. Example using (var site = new SPSite(siteUrl)) { using (var web = site.OpenWeb()) { var regionalSettings = web.RegionalSettings; var tz = regionalSettings.TimeZone; Console.WriteLine(tz.Description); } }

Top 50 recent answers are included