Timezone problem with ingres JDBC



Hi,

We are running ingres 2 on unixware 7.1.1. We have the ingres2.5
ingresnet installed on a windows server being used to report from via
ODBC, and also running some sql queries from another application via
the JDBC:ODBC bridge as well.

Our issue is to do with timezones (our timezone is GMT+10) via JDBC.
I've read some posts and other websites to do with this issue, but am
unable to work out a solution as yet.

On the windows server, when I do a simple select on a datetime field in
the database via the odbc, I get the correct time (or at least the same
time as what is on the unix host application) On the ingres database
server, ingprenv states "II_TIMEZONE_NAME=australia-victoria" . When I
use the JDBC:ODBC bridge, the value returned is less 10 hours than what
I am expecting. I am not sure if the JDBC is getting the date stored in
the database, without adding the 10 hours, or if it is subtracting ten
hours from the date stored in the database (i am guessing the former,
if my understanding is close).

On the windows server, I have modified the timezone for ingres via
ingsetenv, but this only made the datetime select via ODBC return the
time value of 'less 10 hours' also.

I don't have access to the application that calls the sql via jdbc, but
can replicate the problem using squirrelSQL. Can I fix the problem of
JDBC not picking up the timezone by modifing the timezone settings
somewhere?

Many thanks in advance,
nick

.



Relevant Pages

  • Re: ODBC Driver at Windows XP 64-bits
    ... ODBC: The Microsoft Open Database Connectivity interface is a C ... Microsoft SQL Server ODBC Driver enables access to ... MDAC 2.8: This version of MDAC is included with Windows Server 2003 and ... the same time Windows Server 2003 is released to the customer. ...
    (microsoft.public.windowsxp.basics)
  • Re: Setting Timezone for a Multi-site Windows Network
    ... >I'm looking for some best pratice method for setting the Timezone across ... I have Windows Server 2003 DC's and Windows XP SP2 ... That would help roving users. ... How do you deal with time zone changes when your domain is on a ship, airplane, or other vehicle? ...
    (microsoft.public.windows.server.active_directory)
  • Re: Setting Timezone for a Windows Muti-site Network
    ... >I'm looking for some best pratice method for setting the Timezone across ... I have Windows Server 2003 DC's and Windows XP SP2 ... That would help roving users. ... The time zone does not get set. ...
    (microsoft.public.windows.server.general)
  • Setting Timezone for a Windows Muti-site Network
    ... I'm looking for some best pratice method for setting the Timezone across ... I have Windows Server 2003 DC's and Windows XP SP2 ... workstations. ... That would help roving users. ...
    (microsoft.public.windows.server.general)
  • Setting Timezone for a Multi-site Windows Network
    ... I'm looking for some best pratice method for setting the Timezone across ... I have Windows Server 2003 DC's and Windows XP SP2 ... workstations. ... That would help roving users. ...
    (microsoft.public.windows.server.active_directory)