You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Danny Schumacher (JIRA)" <ji...@apache.org> on 2013/08/29 14:30:51 UTC
[jira] [Created] (WW-4185) make default json date format
configurable
Danny Schumacher created WW-4185:
------------------------------------
Summary: make default json date format configurable
Key: WW-4185
URL: https://issues.apache.org/jira/browse/WW-4185
Project: Struts 2
Issue Type: New Feature
Components: Plugin - JSON
Affects Versions: 2.3.15.1
Reporter: Danny Schumacher
Priority: Minor
Currently if no date format is specified using the @JSON annotation on a field the plugin uses yyyy-MM-dd'T'HH:mm:ss. If someone wants all dates to be in a certain format they currently have to add a @JSON(format="MM-dd-yyyy") annotation to each date fields. It would be nice if there were some kind of configurable constant in struts such as
<constant name="struts.json.date.format" value="MM-dd-yyyy" />
to set the default date format.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira