Improve Programming Skills and User Experience

How to show time in client/browser timezone in ADF

We can get the client timezone using javascript.
First we can get the time offset from client browser, and set it in a cookie.
Than we will access that cookie in our java code, and get the timezone based on that offset.
We will use this timezone in trininad-config.xml

trininad-config.xml settings for getting timezone

<time-zone>#{sessionBean.timeZone}</time-zone>

Than we need to add the getter method for timezone in our SessionBean class.

public TimeZone getTimeZone() {
// code here
// we will see the internal code in some time
}

Now, we will ass javascript in our jspx page, which will set time offset in cookie.