From: Greg Campbell <greg.campbell@us.michelin.com>
To: Walker Jed S <Jed_Walker@cable.comcast.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Set timezone in ODBC
Date: Thu, 09 Jun 2005 17:31:50 -0400
Message-ID: <42A8B546.5020408@us.michelin.com> (raw)
In-Reply-To: <4A59B6AA01F1874283EA66C976ED51FC0E1AE3@COENGEXCMB01.cable.comcast.com>
References: <4A59B6AA01F1874283EA66C976ED51FC0E1AE3@COENGEXCMB01.cable.comcast.com>
Curious,
I did a brief experiment on the PostgreSQL server with psql without ODBC
inverviening
.
Something like
SET TIME ZONE INTERVAL '08:00' HOUR TO MINUTE;
SELECT CURRENT_TIMESTAMP AS TEST_TIME;
SET TIME ZONE DEFAULT;
SELECT CURRENT_TIMESTAMP AS TEST_TIME;
It did return timestamps that were marked as 8 hrs. different.
I am wondering if ODBC is just not passing the adjusted time. I don't
know why it would be biased in one direction (message to server being
adjusted, but data coming back not ???)
Is your field of 'timestamp with timezone' or just timestamp?
Walker, Jed S wrote:
> We don't want to change the timezone on the server.
>
> We could have the client send the timestamp with timezone but without
> setting the time (using set timezone to) then they get back the
> timestamps in the server timezone which they don't want.
>
> -----Original Message-----
> From: Greg Campbell [mailto:greg.campbell@us.michelin.com]
> Sent: Thursday, June 09, 2005 10:15 AM
> To: Walker, Jed S
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Set timezone in ODBC
>
> To configure a server for a default timezone, see the PostgreSQL admin
> guide for the PostgreSql configuration file, the TIMEZONE parameter.
>
>
>
> Walker, Jed S wrote:
>
>
>>We have just setup our first PostgreSQL system. We have a vendor
>
> product
>
>>that connects via ODBC. That vendor product needs to talk in a
>
> different
>
>>timezone than our database server is at. How can you specify a
>
> timezone
>
>>to use through ODBC?
>>
>>
>> Jed S. Walker
>>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.orgAttachments:greg.campbell.vcf (text/x-vcard, 239B) download
begin:vcard
fn:Greg Campbell
n:Campbell;Greg
org:Michelin North America - US5 Lexington;ENG-ASE
email;internet:greg.campbell@us.michelin.com
title:ASE Systems Engineer
tel;work:803-951-5561/x75561
x-mozilla-html:FALSE
version:2.1
end:vcard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: greg.campbell@us.michelin.com, Jed_Walker@cable.comcast.com
Subject: Re: Set timezone in ODBC
In-Reply-To: <42A8B546.5020408@us.michelin.com>
References: <4A59B6AA01F1874283EA66C976ED51FC0E1AE3@COENGEXCMB01.cable.comcast.com> <42A8B546.5020408@us.michelin.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox