You need to sign in to do that
Don't have an account?
Capricorn
Converting System TimeZone to user TimeZone
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
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
I again have one query regarding time zone that, how can we calculate time from user time zone. If we use userinfoResults it will return the name of time zone. But we want the offset of that particular time zone, or how can we convert the time using the timezone specified by the user's client host which should match the user's salesforce timezone.
Can anyone tell me, How can we convert UserTimeZone to System TimeZone?
In my application, i need to update user time zone with system time zone.