We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would like to propose changes to FilterPaneUtils on parsing date string. This would allow javascript dateformat to be parse.
//private static String df = 'EEE MMM dd HH:mm:ss zzz yyyy' private static String[] df = ["yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", 'EEE MMM dd HH:mm:ss zzz yyyy'] private static final Log log = LogFactory.getLog(this)
static Date parseDateFromDatePickerParams(paramProperty, params) { try { if(params[paramProperty] instanceof Date) { return params[paramProperty] } if(params[paramProperty] instanceof String) { for(int i = 0; i < df.length; i++) { try { return new SimpleDateFormat(df[i]).parse(params[paramProperty]?.toString()) } catch(Exception ex) { /* Do nothing. */ log.debug("Parse exception for ${paramProperty} : ${params[paramProperty]}: ${ex.message} with Format ${df[i]}") } } }
. . .
The text was updated successfully, but these errors were encountered:
Will be in 2.4.5
Sorry, something went wrong.
Adding fix for github #37 #37
e6176e0
No branches or pull requests
Would like to propose changes to FilterPaneUtils on parsing date string.
This would allow javascript dateformat to be parse.
//private static String df = 'EEE MMM dd HH:mm:ss zzz yyyy'
private static String[] df = ["yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", 'EEE MMM dd HH:mm:ss zzz yyyy']
private static final Log log = LogFactory.getLog(this)
.
.
.
The text was updated successfully, but these errors were encountered: