You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2018/01/09 09:58:00 UTC

[jira] [Created] (OFBIZ-10152) Use properties for hard-coded date/time strings

Jacques Le Roux created OFBIZ-10152:
---------------------------------------

             Summary: Use properties for hard-coded date/time strings 
                 Key: OFBIZ-10152
                 URL: https://issues.apache.org/jira/browse/OFBIZ-10152
             Project: OFBiz
          Issue Type: Improvement
          Components: ALL COMPONENTS
    Affects Versions: Trunk
            Reporter: Jacques Le Roux
            Priority: Minor


This refers to a suggestion from Adrian at http://markmail.org/message/bldm5eajql4in3yg
{quote}
The current OFBiz framework supports a user-selected locale and time 
zone. There are places in the UI where those settings are ignored and 
date/time strings are hard-coded to the yyyy-MM-dd HH:mm:ss.SSS format. 
That was a design decision made by the developer community.

Most of the framework code uses a formatting string constant found in 
UtilDateTime.java:

public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS";

If you want to change the date/time format, that would be place to do it.

It would be best to have those format strings loaded from a properties 
file, so that users like yourself can change it easily - without having 
to modify framework code. Anyone wanting to work on that improvement can 
submit a patch to Jira and I would be happy to review and commit it.

-Adrian
{quote}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)