tag:blogger.com,1999:blog-4455058894110083658.post6471656429460659643..comments2024-02-26T22:59:25.161+00:00Comments on Vardhaman Deshpande: Modify Site Regional and Language settings with JSOM and JavaScriptVardhaman Deshpandehttp://www.blogger.com/profile/17919845281919756108noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4455058894110083658.post-84291103123453588882016-09-01T22:53:22.944+01:002016-09-01T22:53:22.944+01:00Hi Sanjay,
You can use the "SPS-TimeZone&quo...Hi Sanjay,<br /><br />You can use the "SPS-TimeZone" user profile property to get the timezone of a user. Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-50062549690854795972016-06-26T11:45:40.020+01:002016-06-26T11:45:40.020+01:00Hi,
Is it possible to get the Regional Settings ...Hi, <br /><br />Is it possible to get the Regional Settings of currently logged in user - not the web or site ??<br />I need to fetch the timezone offset for the logged in user (using client side - no server side) including the Day time savings. Kind of how Sharepoint renders.<br />When the newsfeed webpart is added, SharePoint injects _spRegionalSettings object on the page (viewsource), like _spPageContextInfo. I haven't found a way to get that object otherwise so far. <br /><br />Thanks<br />SanjaySanjayhttps://www.blogger.com/profile/13110509189956039442noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-38692076339644846122015-08-08T13:18:20.128+01:002015-08-08T13:18:20.128+01:00Yeah setting the timezone is a bit non intuitive. ...Yeah setting the timezone is a bit non intuitive. <br /><br />What would have been better is something like regionalSettings.set_timeZone(timeZoneID) Or even if you could create a new SP.TimeZone object yourself and pass it to set_timeZone().<br /><br />In both those ways, you don't have to make an extra call to get the TimeZone object first before setting it. Vardhaman Deshpandehttps://www.blogger.com/profile/17919845281919756108noreply@blogger.comtag:blogger.com,1999:blog-4455058894110083658.post-56654048024074848922015-08-08T00:54:07.981+01:002015-08-08T00:54:07.981+01:00This is fun! :-)
I've been looking at the reg...This is fun! :-)<br /><br />I've been looking at the region's timezone:<br />https://msdn.microsoft.com/en-us/library/office/jj245652.aspx<br /><br />(no proper information on msnd makes me sad).<br /><br /><br />Pulling it out of REST on my tenant:<br /><br />{ <br />"Id": 76,<br />"Description" : "(UTC+10:00) Canberra, Melbourne, Sydney",<br />"Information" : {<br /><b> "Bias": -600,</b><br /> "DaylightBias": -60,<br /> "StandardBias": 0<br /> }<br />}<br /><br />I recall a year ago I had only a Timezone string and had to fiddle with the +10:00 - this is somewhat better. johnliu.nethttps://www.blogger.com/profile/17384021533460729701noreply@blogger.com