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

Greg Huber edited comment on WW-5175 at 4/1/22 10:50 AM:
---------------------------------------------------------

now the devMode logs are flooded with these :(

2022-04-01 11:24:11,730 WARN  
com.opensymphony.xwork2.util.AbstractLocalizedTextProvider 
AbstractLocalizedTextProvider:findDefaultText - Missing key 
[struts.date.format] in bundles [[ApplicationResources, 
org/apache/struts2/struts-messages, com/opensymphony/xwork2/xwork-messages]]!

 

Would this be OK to suppress these?  Have an empty property and an empty check?
{code:java}
ApplicationResources.properties

# Suppress messages
struts.date.format=

DateConverter:

if (globalFormat != null && !"".equals(globalFormat)) {
    globalDateFormat = new SimpleDateFormat(globalFormat, locale);
}
{code}


was (Author: gregh99):
now the devMode logs are flooded with these :(

2022-04-01 11:24:11,730 WARN  
com.opensymphony.xwork2.util.AbstractLocalizedTextProvider 
AbstractLocalizedTextProvider:findDefaultText - Missing key 
[struts.date.format] in bundles [[ApplicationResources, 
org/apache/struts2/struts-messages, com/opensymphony/xwork2/xwork-messages]]!

 

Would this be OK?  Add an empty property and an empty check to suppress these?

ApplicationResources.properties

# Suppress messages
struts.date.format=

DateConverter:

if (globalFormat != null && !"".equals(globalFormat)) {
            globalDateFormat = new SimpleDateFormat(globalFormat, locale);
}

> Add basic LocalDateTime support
> -------------------------------
>
>                 Key: WW-5175
>                 URL: https://issues.apache.org/jira/browse/WW-5175
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.29
>            Reporter: Greg Huber
>            Priority: Minor
>             Fix For: 2.6
>
>
> Add basic LocalDateTime support ie for the LocalDateTime.now().



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to