AndreC Posted January 16, 2014 Share Posted January 16, 2014 Hello,I am having some issues with the timezones.Here is the situation;The database is hosted on AWS and is set to UTC. The Jasperserver is also running on AWS and system time is also UTC.At login to JasperServer I do specify the timezne using the drop down list (timezoneIds).I have then created an Input Control that make a database query filtering on dates. The dates could be a range or 'today' which translate to CURRENT_DATE, or 'yesterday' ...If I work in UTC time than it seem to all work.If I select a different timezone then things gets mixed.In the debug logs (jasperserver.log)2014-01-16 02:28:03,090 DEBUG JRJdbcQueryExecuter,pool-4-thread-2:396 - Parameter #2 (dateRange of type java.lang.String): today2014-01-16 02:28:03,090 DEBUG JRJdbcQueryExecuter,pool-4-thread-2:396 - Parameter #3 (startDateStr of type java.lang.String): 2014-01-16 02:27 EST2014-01-16 02:28:03,091 DEBUG JRJdbcQueryExecuter,pool-4-thread-2:396 - Parameter #4 (dateRange of type java.lang.String): today2014-01-16 02:28:03,091 DEBUG JRJdbcQueryExecuter,pool-4-thread-2:396 - Parameter #5 (endDateStr of type java.lang.String): 2014-01-16 02:27 EST The problem is that the user expect that the dates he entered are local to whatever timezone he specified at login, which is EST, what we see here is the date get converted but then the time become wrong as it has the wrong timezone associated to the new time it seem. I have tried to also set the timezone to UTC in the datasource (JDBC with oracle.jdbc.OracleDriver) and still does not seem to match Basically how to configure the server such that international clients can connect using their local timezone and have all date converted properly? Link to comment Share on other sites More sharing options...
AndreC Posted January 16, 2014 Author Share Posted January 16, 2014 While there seem to be some sort of convertions for the date specified in the control as date type, how to tell oracle that I want the "current_time" or "sysdate" to apply the user specified timezone?so if the user is in EST and specify 'today' that the system convert the 00:00 to 05:00 such that the query filter on the converted UTC time as the database is set. I'know i am confusing but im not sure how to explain.. Link to comment Share on other sites More sharing options...
mastanraosegu Posted January 17, 2014 Share Posted January 17, 2014 I am also facing problem Waiting for response. Link to comment Share on other sites More sharing options...
mastanraosegu Posted March 25, 2014 Share Posted March 25, 2014 Can you explain brefly Link to comment Share on other sites More sharing options...
Mahendran.Balasubramanium Posted April 11, 2021 Share Posted April 11, 2021 I am looking for solution for this problem. Please let me know Link to comment Share on other sites More sharing options...
Mahendran.Balasubramanium Posted April 11, 2021 Share Posted April 11, 2021 Do we have any resolution for this? I need the solution as well 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