[ 
https://issues.apache.org/jira/browse/WW-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865402#comment-13865402
 ] 

Hudson commented on WW-4185:
----------------------------

SUCCESS: Integrated in Struts2-JDK6 #869 (See 
[https://builds.apache.org/job/Struts2-JDK6/869/])
WW-4185 makes default json date format configurable (lukaszlenart: rev 1556522)
* 
/struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
* 
/struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java
* 
/struts/struts2/trunk/plugins/json/src/main/java/org/apache/struts2/json/JSONWriter.java
* 
/struts/struts2/trunk/plugins/json/src/test/java/org/apache/struts2/json/JSONResultTest.java
* 
/struts/struts2/trunk/plugins/json/src/test/java/org/apache/struts2/json/JSONWriterTest.java
* 
/struts/struts2/trunk/plugins/json/src/test/java/org/apache/struts2/json/SingleDateBean.java


> 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
>            Assignee: Lukasz Lenart
>            Priority: Minor
>              Labels: json, struts2
>             Fix For: 2.3.17
>
>         Attachments: 
> 0001-WW-4185-allow-default-date-format-to-be-set-in-strut.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to