maddie090 Posted July 8, 2010 Share Posted July 8, 2010 I'm running jasperserver 3.7 CE on glassfish V3. If i schedule a report i can set my locale to "dutch"Nederlands. But the pdf report is setting the dates to English format. When i run the report in ireport i get the wanted dutch presentation of my dates. The manual mentions some .properties files inside "WEB-INF\bundle" directory that can be manipulated. But this whole "bundles" subdir is not in my jasperserver directory? I deployed jasperserver CE via the buildomatic installer. Link to comment Share on other sites More sharing options...
maddie090 Posted July 8, 2010 Author Share Posted July 8, 2010 WTF? I just notice some strange things:A>1. i create a parameter $P{date} with the expression new java.util.Date() and Parameter Class "java.lang.String"2. I put this parameter inside an text-field with the patern mask "EEE, d MMM yyyy HH:mm:ss Z"3. This is rendered as "Thu Jul 08 10:46:15", which is the English presentation and not what i want. B>1. i select inside iReport from Palette - Tools the Current Date object2. i place it inside my report3. Text Field expression is "new java.util.Date()", Expression Class is java .util.Date, Pattern is "EEE, d MMM yyyy HH:mm:ss Z" I run the report and it is rendered as "donderdag 08 juli 10:46:15", and that is what i want it to be. Running the report from jasperserver gives me the same values for both fields, that is 1 English date and 1 Dutch Date. Link to comment Share on other sites More sharing options...
lucianc Posted July 9, 2010 Share Posted July 9, 2010 johnabrinkWrote: 1. i create a parameter $P{date} with the expression new java.util.Date() and Parameter Class "java.lang.String" That's not a good idea. If you want a date parameter, set it's class to java.util.Date.Regards,Lucian 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