Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4185

make default json date format configurable

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.15.1
    • 2.3.20
    • Plugin - JSON

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lukaszlenart Lukasz Lenart
            dschu012 Danny Schumacher
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment