cancel
Showing results for 
Search instead for 
Did you mean: 

Timezone of current User

Former Member
0 Kudos

I know that WebDynpro is somehow timezone-sensitive. But can I query the API for the current user's timezone?

Regards

Bruno

Accepted Solutions (0)

Answers (2)

Answers (2)

sid-desh
Advisor
Advisor
0 Kudos

Hi Bruno,

While creating the user in the UME make sure that you set the Timezone and then use the code below to get the TimeZone of the user.

<i>IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user = wdUser.getSAPUser();

if(user != null){

// code for authenticated user

Timezone tz = user.getTimezone();

......

}

else{

// code for anonymous user

}</i>

Former Member
0 Kudos

Hi,

Please try to set the user locale and get the time zone.

Thanks and Regards,

Sam Mathew