tmoeller Posted January 7, 2010 Share Posted January 7, 2010 Hi,I desingned a report in IReport which shows the expected results in Preview-Mode. It contains one input parameter for the Dateof the report, which is currently defined as Java.Util.Date.Deploying this report to the JasperServer 3.7.0 end always in a wrong result. The report is show correctly but the content is always dated one day before the chosen date.I tried any combination of changing the parameter definition, the underlying sqlstatement or the resource (input control definition).The only things i could achive was a wrong report or no report.As this gets really annoying it hope there is somebody with more knowledge, perhaps of java, who can help me out of this. So, any ideas are welcome. CheersThorsten Link to comment Share on other sites More sharing options...
msn Posted January 7, 2010 Share Posted January 7, 2010 Why not simply print todays date, instead of having an input parameter?A Java.util.Date field filled with new Date() will give you todays date.The other problem might be a timezone difference between your iReport installation and your JasperServer installation. I think it is using the machine settings.Post Edited by msn at 01/07/2010 12:48 Link to comment Share on other sites More sharing options...
sjongenelen Posted January 7, 2010 Share Posted January 7, 2010 i've had the same issue: its the fault of JDBC. My solution was to set the 'Time Zone' value in the datasource to blank Link to comment Share on other sites More sharing options...
tmoeller Posted January 7, 2010 Author Share Posted January 7, 2010 Thanks, it was the same problem here too. Link to comment Share on other sites More sharing options...
saurabhmca2003 Posted November 7, 2012 Share Posted November 7, 2012 Hi All,I faced the same issue. My date is coming one less from database. I have set it then as mentioned below:You can set the database timezone in jasper server from where you are setting the datasource for your iReport. So, go to jasper server, add/edit datasource, set TimeZone to the one you want. If you want the date to coming from database, set 'Use Database Settings' from dropdown. Please do let me know if you face any issue in this.Thanks, Saurabh 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