Hello Boris,

after thinking a bit about this problem and testing today i think best
solution is to provide a bean with a getter for your timeZone.

you can implement it like this

public Date getTimeZone() { return TimeZone.getDefault();}

and use it

<f:convertDateTime timeZone="#{bean.timeZone}"  .../>

that sould work for you, in my tests it does.

If you do this your Date object holds internaly GMT,
maybe you must consider this when you store the date anywhere.


Boris Kovalenko wrote:
> Hello, Volker!
> 
>     I found, that setting timezone to normalized form (e.g. GMT+6)

With this you still have the problem to change this every half year.

> solves the situation. But getID() returns (for me) Asia/Yekaterinburg
> which is not recognized by JSF (imho).

"Asia/Yekaterinburg" is recognized by my java implementation,
if you got this from TimeZone.getDefault().getId() it should be recongnized.

> 
> With respect,
>     Boris
> 


Regards
Volker
-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to