struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JOSE L MARTINEZ-AVIAL <jlm...@gmail.com>
Subject Set timezone in jsonwriter for date conversion
Date Tue, 03 Nov 2015 19:13:09 GMT
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 converted
to his local time. In order to do that I need to set the timezone of the
DateFormatter used by the json plugin. I don't see any issue way to do
that, apart from extending JSONWriter. Is that something possible? how I
would indicate the plugin to use my own version of JSONWriter?

Thanks

JL

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message