M
Mark Rafn
For something I've been doing for so long, this is an embarassing question to
ask. The getters on ResultSet and setters on PreparedStatement for
time-related types can take an optional Calendar.
My understanding has always been "if the DB is using a timezone other than
your VM default, you must specify a Calendar that has the DB's timezone".
This seems to work, but it seems kludgy and I am unable to figure out WHY this
is needed.
1) Is this the correct rule?
2) Why is this necessary? Shouldn't there be a Connection-level setting (or
better, the driver should detect it) for this, rather than making each call
decide what timezone the DB might be in?
ask. The getters on ResultSet and setters on PreparedStatement for
time-related types can take an optional Calendar.
My understanding has always been "if the DB is using a timezone other than
your VM default, you must specify a Calendar that has the DB's timezone".
This seems to work, but it seems kludgy and I am unable to figure out WHY this
is needed.
1) Is this the correct rule?
2) Why is this necessary? Shouldn't there be a Connection-level setting (or
better, the driver should detect it) for this, rather than making each call
decide what timezone the DB might be in?