Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Set time zone of user

$
0
0

Hi,

 

as this is an internal SharePoint I have now "solved" it this way:

  • I created a list with no additional fields, so only the standard "Title".
  • When a user visits the Homepage it is checked if in this list is an entry where "Title=_spUserId", if not a new entry is created
  • Then I do an update of this record with just "Title = _spUserId WHERE Title = _spUserId"
  • Afterwards I read this record with DateInUtc=FALSE
  • The Modified-Field I transform to a Javascript-Date object, setting seconds and milliseconds to 0
  • Then I create a variable with the current date also setting seconds and milliseconds to 0
  • I compare these two dates
  • If the dates are different I display a popup with an info that the timezone has to be updated and provide the link to the "Regional Settings"

 

It is not the perfect solution because I haven't found a webservice to change the regional settings of a user directly, but better than nothing

 

 

--

Joerg


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>