You need to sign in to do that
Don't have an account?

Timezone for Community User is defaullting to GMT disregarding Organization Default Time Zone
Hello there,
I have setup communities for self-registering community users. I have written my own controller to handle registration process. Whenever community users are self registering, they are getting allocated time zone of GMT instead of default organization time zone.
I think, the SF might be assigned default time zone to community users as well as it does with internal users. Am I right?
Thanks in advance.
I have setup communities for self-registering community users. I have written my own controller to handle registration process. Whenever community users are self registering, they are getting allocated time zone of GMT instead of default organization time zone.
I think, the SF might be assigned default time zone to community users as well as it does with internal users. Am I right?
Thanks in advance.
Schema.DescribeFieldResult fieldResult = User.TimeZoneSidKey.getdescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for(Schema.PicklistEntry p : ple)
{
system.debug('###'+p.getlabel()+'****'+p.getValue()+'\n');
}