sreekanthjnayar Posted March 23, 2016 Share Posted March 23, 2016 While using visualize.js for embedding we were able to see that the timezone parameter doesn't affect the report date values. At the same time when logging into Jaspersoft web application directly, after selecting a time zone the same report values (eg: Audit Report) are shown in the time zone selected in the login screen. This does not seem to be the case with visualize.js, it is just displaying the report in the server timezone inspite of passing the timezone paramter. Is this is a bug? Sample code, given belowvisualize( { auth: { token: preAuthToken, preAuth: true, tokenName: "jtkn", timezone: "America/New_York" } }, function(v) {}); Link to comment Share on other sites More sharing options...
srang Posted March 23, 2016 Share Posted March 23, 2016 I came across this same issue. The problem is that when using preauth token to authenticate, visualize.js doesn't pass along the timezone param. Link to comment Share on other sites More sharing options...
sreekanthjnayar Posted March 24, 2016 Author Share Posted March 24, 2016 In the visualize.js script inclusion URL include this parameter userTimezone and see. It looks to be working ok as far as the time is concerned, but it is messing up the date it seems. I was testing it using the audit report available within Jaspersoft (maybe it's specific to this report).Sample URLhttp://localhost:8080/jasperserver-pro/client/visualize.js?userTimezone=Europe/London Got this idea from their security check URL which supports the userTimezone param which means, the visualise.js URL also will flow through that security layer.Refhttp://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v62/security-check 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