开发者

Problem sending Date from Flex-AS3 to Java EJB Service

I have a ValueObject in Java开发者_开发问答 Source Code with a java.util.Date or java.sql.Date attribute and in Flex-AS3 have a DTO mapped by [RemoteClass] using a Date AS3 Type. When I set a date in Flex with 2010-09-05 format YYYY-MM-DD in DateField component and send it to Java, java shows 2010-09-04 there is a difference of a day from flex to java

I'm using Java EJB Service + GraniteDS + RemoteObject to comunication.

Thanks!


I found that the best way of exchanging dates between flex and the backend is to use string literals. Otherwise, you will have to take care of the time zone differences between client and server - that's why you see different dates. If you will search stackoverflow you will find more topics discussing about that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜