Jump to content

timestamp problem


mmww

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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...