myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: DataConverter Initializazion
Date Tue, 17 Oct 2006 15:24:12 GMT
That's an old bug - and indeed, it has been introduced to comply with
the TCK. As an alternative, use s:convertDateTime which does exactly
what you're proposing.

regards,

Martin

On 10/17/06, ::SammyRulez:: <sammyrulez@gmail.com> wrote:
> Before opening a Issue I would like to ask if someone could explain this.
>
> DateTimeConverter has a fieled called TIMEZONE_DEFAULT which is used
> in date conversion if no timezone is provided.
>
> It would be natural for me to initialize it with
> TimeZone.getDefault(); instead it is initialized with GMT. As a result
> many Date Objects instantiated from ORM / DB Data which has 00:00 as
> time are CONVERTED from the original timezone to GMT timezone. So a
> day before (in my CEST case ;-) )
>
> if  TIMEZONE_DEFAULT will be equal to TimeZone.getDefault() all java
> stuff in my application will use the same date/time conversion.
>
> Thanks
>
>
> --
> ::SammyRulez::
> http://www.kyub.com/blog/
> -----------------------------------------------------------------
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message