Tag Info

Hot answers tagged

3

For full explanation see Dealing with Multiple Time Zones in SharePoint 2010 var user = SPContext.Current.Web.CurrentUser; // Always perform a Null-Check on SPUser.RegionalSettings if (user.RegionalSettings != null) { return user.RegionalSettings.TimeZone.UTCToLocalTime(listDateUtc); } else { // User didn't set a time zone, so use the one from the ...


3

I tried it out on my Sharepoint environment. If I choose as the Regional Setting Malay (Brunei Darussalam), the accepted decimal separator is the "." (dot). If I choose Malay (Malaysia), the accepted decimal separator is the "," (comma). So I think you just have to choose the other Malay regional setting. No IIS reset was needed in my tests. I hope it ...


2

try this one: var url = ctx.HttpRoot+"/_layouts/regionalsetng.aspx?Type=User"; $.get(url,function(data){ $(data).find("select[name=ctl00$PlaceHolderMain$ctl00$ctl00$DdlwebLCID]").find(":selected").each(function(){ var lcid = $(this).attr("value"); var cultureInfo = $(this).text(); }); }); ...


2

I don't think it's possible. You could create a webcontrol which shows the date like you want it. In case of a date in a list, you should use a content query webpart with a custom xsl If you want to show the date like you want it in a list: Create a Date column(Call Date1), leave it on the default view Then create another column for your text version date ...


2

When the fields are read-only, you can't change them as you have found out. But it's likely that this will change in the near future since Microsoft spend a lot of resources to extend the Office 365 API's


2

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); } }


1

1) For showing the language switch with localized content the one approach you can choose is content translation using Resource Files. Reference Link : Link 2) The other approach you can go with using the below code block : int intLCID = System.Threading.Thread.CurrentThread.CurrentUICulture.LCID; if (intLCID == 1025) { ...


1

The property you are after is called LocaleId. It cannot be set after the site template has been set. As for the new sites: how are you creating them? In the portal after you click SP Admin Centre>New>Private you should have an option to choose the language. From Powershell: new-sposite -owner -url -storagequota -localeid For English you should choose ...


1

It will not update the spell Checker, you have to manually change it. regardless of what language you have set your locale or settings to in your SharePoint instance that the spellchecker dictionary ALWAYS defaults to US English read this blog for more details: ...


1

Someone has posted a similar question before on here. They were given this bit of powershell to iterate through the Site Collections in the farm and change the settings to the UK region: [Reflection.Assembly]::LoadWithPartialName("System.Globalization") | out-null get-spweb -site http://yoururl -limit all |% { $_.Locale = ...


1

In CSOM API Web class exposes Web.RegionalSettings property to get the regional settings that are currently implemented on the website. Example var regionalSettings = ctx.Web.RegionalSettings; ctx.Load(regionalSettings); ctx.ExecuteQuery();


1

Ok, so I figured this out (Edit: No I Didn't). It turns out, that there is a StorageTZ attribute on the Field element for CAML. You can set this value to UTC and then it will use the date as you pass it in instead of converting it to the users local time. For the Field element: http://msdn.microsoft.com/en-us/library/dd588183(v=office.11).aspx And this is ...


1

Actually it is possible, although a bit hacky. Check-out this blog post: http://dotnet.lv/blogs/antonsm/archive/2008/12/21/change-date-format-in-sharepoint.aspx I have been using this method a couple of times and it has worked fine in my cases.



Only top voted, non community-wiki answers of a minimum length are eligible