Re: Set timezone in jsonwriter for date conversion

2015-11-05 Thread Lukasz Lenart
Yeah, right now it's hard. I think the best option is to write your own JSON result with all the custom stuff you need - JSONWriter & JSONUtil. I'm going to refactor JSON plugin to be more extensible but it won't happen till Struts 2.5. Regards -- Ɓukasz + 48 606 323 122

Re: Set timezone in jsonwriter for date conversion

2015-11-04 Thread JOSE L MARTINEZ-AVIAL
Hello, Let me clarify the issue I have. I would like to be able to customize the way the JSON plugin formats the date when converting an objecto to json. Specifically, when I'm returning a JSONResult to a client. In order to do that I need to modify the DateFormatter used by JSONWriter so I

Set timezone in jsonwriter for date conversion

2015-11-03 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts 2.3.16.3. I use the json plugin to return information to the client (browser and ios App). The problem I have is that the dates/times are local to my server, and since I have the option to know the client's timezone, I would like to return the date to the client