• pnakada
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

Reading through the forums, i found many options but still havent manage to get a working solution.
The data in SFDC backend is stored as per organisation timezone. On accessing it in a s-control, i want a date displayed to be converted to User's Time Zone.

I am using the Ajax toolkit  8.0 to get the following:

var user = sforce.connection.getUserInfo();
alert("your timezone is: " + user.userTimeZone);

However this returns me America/Los_Angeles, where as i want a value such as GMT +7 etc. I would then use this to calculate the offset from the base GMT time stored in SFDC to convert it to User Timezone.

Any help anyone?

Cheers
Caps