function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dgindydgindy 

User TimeZone

How do I get a user's time zone with in a s-control?  We have Users all over the US and need the offset the time for each user individually. 
werewolfwerewolf
Use getUserInfo().  Like:

Code:
var user = sforce.connection.getUserInfo();
var timeZone = user.userTimeZone;

 


dgindydgindy
Thanks
dgindydgindy
Does anyone have a link to the document that has the sforce object definition?
 
werewolfwerewolf
I think sforce.connection is really the only interesting object on there.  The AJAX toolkit docs are here though:

http://www.salesforce.com/us/developer/docs/ajax/index.htm