struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Nenning (JIRA)" <>
Subject [jira] [Created] (WW-4799) make DateConverter configurable
Date Wed, 17 May 2017 09:07:04 GMT
Christoph Nenning created WW-4799:

             Summary: make DateConverter configurable
                 Key: WW-4799
             Project: Struts 2
          Issue Type: Improvement
          Components: Core
            Reporter: Christoph Nenning
            Priority: Minor

Currently DateConverter has some logic to test which DateFormat is able to parse given Date
and use that one.

The order in which DateFormats are tested is:
* Locale specific DateTime LONG
* Locale specific DateTime MEDIUM
* Locale specific DateTime SHORT
* rfc3339 ("yyyy-MM-dd'T'HH:mm:ss")
* Locale specific Date SHORT
* Locale specific Date MEDIUM
* Locale specific Date LONG
* rfc3339dateOnly ("yyyy-MM-dd")

Would be great if apps could configure this. E.g. by:
* defining an own list
* defining order of objects in current list
* defining just one DateFormat to be used
* defining just which of Locale specific DateFormats to use (SHORT vs LONG)

This message was sent by Atlassian JIRA

View raw message