Skip to Content
author's profile photo Former Member
Former Member

Timezone of current User

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

Regards

Bruno

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2004 at 06:09 PM

    Hi,

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

    Thanks and Regards,

    Sam Mathew

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2004 at 06:36 PM

    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>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.