My issue is related to this topic
My requirement is,I need to show the client side date in the UI and I tried many options none of them give results.
The code below shows the correct date which I changed in the machine.But when I deploy the same code in the server which is located in US, the date is not getting changed.
It shows the server date and I need to show the user local timezone date wherever the user is accessing the application.
For no reason, I assigned the value of the variable #{sessionScope.TIMEZONE} ="GMT".
Here is my code given in XHTML
<h:outputText
value="Current Login Date: #{sessionScope.LOGINTIME}"
style="font-weight:normal;white-space:nowrap">
<f:convertDateTime type="both" dateStyle="default"
timeStyle="default" timeZone="#{sessionScope.TIMEZONE}" />
</h:outputText>
Like I said I need to show the local timezone date in the UI.Really appreciate your help.