You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by iSquareOne LLC <is...@yahoo.com> on 2006/07/07 06:43:45 UTC
f:convertDateTime and Timezone
Hey, all,
I think maybe someone has asked this question before. If yes, sorry for asking the same question again. Now I noticed that the f:convertDateTime use UTC to display time, which is very inconvenient. From the link below, I learned that we can use s:convertDateTime which defaults to the local time.
http://wiki.apache.org/myfaces/FAQ
My question is - How do you solve this problem? Do you perfer s:convertDateTime? Is there a configuration parameter that controls this timezone, so that once we set it globally, f:convertDateTime can work correctly?
Thanks in advance!
---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.
Re: f:convertDateTime and Timezone
Posted by iSquareOne LLC <is...@yahoo.com>.
Thanks! Matthias.
I think I will have to give s:convertDateTime a try. If it does not work well, I will implement a custom formatter.
Again thanks!
Matthias Wessendorf <ma...@apache.org> wrote: The convertDateTime uses GMT as default
*snip*
If a timezone has been specified, it must be passed to the underlying
DateFormat instance. Otherwise the "GMT" timezone is used.
*snip*
On 7/6/06, iSquareOne LLC wrote:
> Hey, all,
> I think maybe someone has asked this question before. If yes, sorry for
> asking the same question again. Now I noticed that the f:convertDateTime use
> UTC to display time, which is very inconvenient. From the link below, I
> learned that we can use s:convertDateTime which defaults to the local time.
>
> http://wiki.apache.org/myfaces/FAQ
>
> My question is - How do you solve this problem? Do you perfer
> s:convertDateTime? Is there a configuration parameter that controls this
> timezone, so that once we set it globally, f:convertDateTime can work
> correctly?
>
> Thanks in advance!
>
>
>
>
> ________________________________
> Want to be your own boss? Learn how on Yahoo! Small Business.
>
>
--
Matthias Wessendorf
futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
Re: f:convertDateTime and Timezone
Posted by Matthias Wessendorf <ma...@apache.org>.
The convertDateTime uses GMT as default
*snip*
If a timezone has been specified, it must be passed to the underlying
DateFormat instance. Otherwise the "GMT" timezone is used.
*snip*
On 7/6/06, iSquareOne LLC <is...@yahoo.com> wrote:
> Hey, all,
> I think maybe someone has asked this question before. If yes, sorry for
> asking the same question again. Now I noticed that the f:convertDateTime use
> UTC to display time, which is very inconvenient. From the link below, I
> learned that we can use s:convertDateTime which defaults to the local time.
>
> http://wiki.apache.org/myfaces/FAQ
>
> My question is - How do you solve this problem? Do you perfer
> s:convertDateTime? Is there a configuration parameter that controls this
> timezone, so that once we set it globally, f:convertDateTime can work
> correctly?
>
> Thanks in advance!
>
>
>
>
> ________________________________
> Want to be your own boss? Learn how on Yahoo! Small Business.
>
>
--
Matthias Wessendorf
futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com