mmww Posted October 23, 2009 Share Posted October 23, 2009 Hi,In my DB2 database I've got timeStamp in neutral Time Zone GMT,But for reports I need my local time.., now (in summer time) I need 2 hour more then GMT...How can I synchronize them? Please for answer :) Link to comment Share on other sites More sharing options...
mdahlman Posted October 28, 2009 Share Posted October 28, 2009 Remember that Java dates are simply an offset since the epoch. They do NOT include timestamp info. The timestamp only enters into the equation as a formatting detail.Normally the DB2 driver should be handling timezone conversions automatically. So you should get the behavior that you want.But if you need to force the timezone that gets used, take a look at the samples I listed here. It shows how to format a date field to a specified timezone.Regards,Matt 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