lori.stopka Posted October 14, 2020 Share Posted October 14, 2020 Running Jaspersoft Server 7.1.0 jasperserver_config.properties contains the following:# Used for parsing and formatting dates by serverdate.format=MM/dd/yyyydatetime.format=MM/dd/yyyy HH:mm:ss# Used for parsing and formatting dates by calendar component (UI).calendar.date.format=mm/dd/yycalendar.datetime.format=mm/dd/yy HH:mm:ss For fields in a report with the class of java.sql.Timestamp, when no pattern is provided in the report, the format on the desktop displays correct When report is run on server the format seems to be mixing up the minute and the month. Any suggestions / thoughts appreciated. Link to comment Share on other sites More sharing options...
dev.oliveira.rafael Posted October 15, 2020 Share Posted October 15, 2020 On the field add this java function new SimpleDateFormat("Y-MM-D HH:mm").format(<YOUR_VALUE_HERE>)Remember of change the format pattern according your country Link to comment Share on other sites More sharing options...
lori.stopka Posted October 15, 2020 Author Share Posted October 15, 2020 Thanks for the response. We do know that adding any pattern to the field in Studio resolves the issue or as you suggest, formatting the field itself, but that requires touching each report. We are trying to determine why the issue even exists. If no pattern is provided you would expect the format of the field to be as defined in the config file on the server but it is not. We have hundreds of reports and no way to identify which ones have date fields without patterns. We are fixing them (providing a pattern) as they present themselves. Existing reports were working as expected for years so we suspect something changed on the server but we don't know what that something is. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now