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 966D552947 for ; Fri, 10 Jun 2005 10:56:17 -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 34315-02 for ; Fri, 10 Jun 2005 13:56:09 +0000 (GMT) Received: from web20826.mail.yahoo.com (web20826.mail.yahoo.com [216.136.227.165]) by svr1.postgresql.org (Postfix) with SMTP id 4CED052921 for ; Fri, 10 Jun 2005 10:56:08 -0300 (ADT) Received: (qmail 74197 invoked by uid 60001); 10 Jun 2005 13:56:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=c+QtH/UEwt6hE7UJ0ouUn/Nx33TqrEtHjtxgiC6hHo9SX4nfsPU4iH0PniWxVYT7cLoImsPFELYpnwm+HVQYr2WGVzqF9T4B1Gmp9uYmJJoLEbwGApeeqJt86EYw49/a/0udagg16pVkifxnCtzHhqz10O+K7gJ3ENIl7DnyoJ8= ; Message-ID: <20050610135611.74195.qmail@web20826.mail.yahoo.com> Received: from [24.248.12.141] by web20826.mail.yahoo.com via HTTP; Fri, 10 Jun 2005 06:56:10 PDT Date: Fri, 10 Jun 2005 06:56:10 -0700 (PDT) From: Jeff Eckermann Subject: Re: Set timezone in ODBC To: Walker Jed S Cc: pgsql-odbc@postgresql.org In-Reply-To: <42A8B546.5020408@us.michelin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.052 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST X-Spam-Level: * X-Archive-Number: 200506/53 X-Sequence-Number: 5440 --- Greg Campbell wrote: > 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? Maybe this is just too blindingly obvious, but I haven't seen it mentioned in this thread: why not just issue a "set timezone" command from your client session? Has that been tried, and with failure? > > > > > 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 > > 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 > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the > unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail