English 中文(简体)
拦截来自BlazeDS的Date对象并根据时区差异进行调整
原标题:Intercepting Date objects coming from BlazeDS and adjusting for timezone differences

我正在开发一个应用程序,该应用程序的开发周期即将结束,并且大部分已经通过了用户测试。我们最近意识到,不希望将日期灵活转换为客户的本地时区,因为我们所有的日期都在美国东部时间,不包含时间数据。由于BlazeDS以UTC发送日期,这导致日期在东部时间以西的时区转换为前一天。

最好的解决方案是对所有日期进行重构,以调整时区偏移量,但这在现阶段是不可行的。由于我们应用程序中的所有日期都不关心时间,所以我真的希望能够拦截BlazeDS中的所有Date对象,并根据时区偏移量进行调整。有可能这样做吗?如果没有,是否有“交叉”解决方案?

谢谢

最佳回答

您可能想看看http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/rpc/remoting/RemoteObject.html#convertResultHandler

在将RO调用的所有结果传递给处理程序之前,您可以检查这些结果。

我不确定这是不是更好的方式。。。因为您将检查返回的每一条消息!

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签