Jump to content
We've recently updated our Privacy Statement, available here ×

JRS not setting timezone on date input controls.


spierepf

Recommended Posts

Greetings,

I've built a simple report with a date input control and a single text field showing the value of that input control. When I log into JRS and set a timezone, the date displayed by the report is still in my local timezone.

Does anyone know the reason why?

Peter

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi, Peter. A similar problem occurred for another customer. Below is the solution that fixed their problem - maybe it applies to your issue as well. Let me know if it doesn't work:

"I think time zone awareness comes from the JS Pro query executor. If you would map it to another one it should work. 

just replace in WEB-INF/classes/jasperreports.properties 

net.sf.jasperreports.query.executer.factory.sql=com.jaspersoft.jasperserver.api.engine.jasperreports.util.JRTimezoneJdbcQueryExecuterFactory 

with 

net.sf.jasperreports.query.executer.factory.sql=net.sf.jasperreports.engine.query.JRJdbcQueryExecuter" 

 

Thanks!

 

aimee

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...