X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7F32C5293A for ; Thu, 9 Jun 2005 18:31:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30379-07 for ; Thu, 9 Jun 2005 21:31:52 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 0EB145293C for ; Thu, 9 Jun 2005 18:31:50 -0300 (ADT) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Thu, 9 Jun 2005 17:31:10 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Thu, 9 Jun 2005 17:25:39 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IHU6H400.9G0 for ; Thu, 9 Jun 2005 17:31:52 -0400 Received: from [156.65.151.174] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Thu, 9 Jun 2005 17:31:51 -0400 Message-Id: <42A8B546.5020408@us.michelin.com> Date: Thu, 09 Jun 2005 17:31:50 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Walker Jed S" Cc: pgsql-odbc@postgresql.org Subject: Re: Set timezone in ODBC References: <4A59B6AA01F1874283EA66C976ED51FC0E1AE3@COENGEXCMB01.cable.comcast.com> In-Reply-To: <4A59B6AA01F1874283EA66C976ED51FC0E1AE3@COENGEXCMB01.cable.comcast.com> Content-Type: multipart/mixed; boundary="------------000306030807060503090602" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.02 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/52 X-Sequence-Number: 5439 This is a multi-part message in MIME format. --------------000306030807060503090602 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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.org --------------000306030807060503090602 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" 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 --------------000306030807060503090602--