mbourassa1 Posted March 12, 2018 Share Posted March 12, 2018 Hi,I'm working in french and I would like to show the date in a report with the full month like this.DATEFORMAT($P{start_date},"d MMMM")When I preview the report in jasper studio, it appears in french but when I publish the report on jasper server, the month is in english.My jasper server 6.3 is showing in french.Do you know why ?Thank you Link to comment Share on other sites More sharing options...
asimkin Posted March 12, 2018 Share Posted March 12, 2018 try to use the expression below to explicitly specify required locale:new SimpleDateFormat("d MMMM", Locale.FRANCE).format( $P{start_date} )Best regards,Andrew Link to comment Share on other sites More sharing options...
joseng62 Posted March 12, 2018 Share Posted March 12, 2018 Hi you can set the local on report level by using the REPORT_LOCALE. orWhen you sign into jasper server, just under the password you can set "Show locale & time zone" to fr. or You can set the default locale for jasper server through jasper property fileshttps://community.jaspersoft.com/documentation/jasperreports-server-administration-guide/v561/configuring-jasperreports-server-offeror if you doing a rest call to generate report, just user the locale property at end of rest url to set given locale to fr. Some way to do it, just depends on your solution outcome. 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