RES: Date conversion error?

"Cristiano Monteiro dos Santos" <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
Hi there Sean.

Any news on that?

-Cris

-----Mensagem original-----
De: [email protected]
[mailto:[email protected]]Em nome de Sean C.
Sullivan
Enviada em: segunda-feira, 13 de dezembro de 2004 12:32
Para: [email protected]
Assunto: Re: [Openamf-user] Date conversion error?



org.openamf.io.AMFSerializer is responsible for storing the Date object 
into the AMF message

AMFSerializer's writeData(Object) method is whee the work is done.

Here's how OpenAMF processes java.util.Date objects:

else if (value instanceof Date) {
            // write Date object
            outputStream.writeByte(AMFBody.DATA_TYPE_DATE);
            outputStream.writeDouble(((Date) value).getTime());
            int offset = TimeZone.getDefault().getRawOffset();
            outputStream.writeShort(offset / MILLS_PER_HOUR);
        }

I'll try to reproduce thte bug on my local PC.

-Sean


Cristiano Monteiro dos Santos wrote:

>Hi there guys!
>
>I'm having a problem dealing with Date objects from Java to Flash. I have an EJB method that only returns a new Date() object. But every time I call that method, the received Date in Flash gets an hour less.
>
>Anyone else is getting this error?
>
>Thanks!
>Cris
>
>
>  
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.