Hi
I found the error : the problem is when the day is 1rst jan 1970 ! (actually I use only the time, but this seems to be important to flash
The problem was solved when I added

ret.get(idx).starttime.setYear(2000);

in the server side, before sending the object to flash.
Is this normal ?

Emil Ong wrote:
On Tue, Jul 08, 2008 at 04:49:02PM +0200, Riccardo Cohen wrote:
  
Hi
I downloaded and tested yesterday 3.2 snapshot on my mac. It seems to 
work all right, the setMaxResults problem is solved and the date 
serialization does not make any error.
But there is still a problem in the serialization from java to flex.
I use date object for time information. All works great if the time is 
between 01:00 to 23:59. But for all times from 0:0 to 0:59 the Date 
object received on the flex side has a bad time.

I test it like this :
    for each (user in event.result)
    {
      
output.text+="time:"+user.starttime.getHours()+":"+user.starttime.getMinutes()+"\n";
    }
the output is :

time:20:42
time:1:52
time:NaN:NaN  // should be 0:52
    

Hi Riccardo,

I just tried to replicate this and I could not.  Please send the source
for an example.

Thanks,
Emil

============================================================

Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 361-2436
mailto:[EMAIL PROTECTED]
http://blog.caucho.com/

Caucho: Reliable Open Source
--> Resin: application server
--> Quercus: PHP in Java
--> Hessian Web Services


_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

  

--

Riccardo Cohen Développeur
logo Articque Articque Décisionnel
149, av. du Gal De Gaulle
Fondettes, 37230
France

www.articque.com
Tél: +33(0)2.47.49.73.74
Fax: +33(0)2.47.49.91.49
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to