mjoc13 Posted December 11, 2008 Share Posted December 11, 2008 Hi all,Since i do not know the proper way of handling timezones in ireport, i'm wondering if i can add 8 hours to the utc timestamp coming from the datasource, to offset the default timezone formatting.Currently it's stored with time 00:00:00 UTC, so converting with out current timezone pulls it back into the previous day.I tried creating a variable and using the method setHours(int), but when compiling the report is errors with a cannot convert void to timestamp...since the setHours does not return anything. I've also tried casting it to a timestamp after the set method with no luck.Any info would be appreciated. Thanks, Link to comment Share on other sites More sharing options...
svenn Posted December 12, 2008 Share Posted December 12, 2008 Look at the capabities of your database. You may be able to manipulate that value in your SQL. Link to comment Share on other sites More sharing options...
pawankumar.singh Posted November 21, 2019 Share Posted November 21, 2019 use this function at SQL levelto_timestamp(to_char(to_date('01-01-1970 <Time what want to add>' , 'DD-MM-YYYY HH24:MI:SS')+open_date/(60*60*24),'DD-MM-YYYY HH24:MI:SS'), 'DD-MM-YYYY HH24:MI:SS') as per you requirment add you time in below format like below5:30:00 in my it workshope it will help!Thanks Pawan 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